- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 32 for logIf (0.04 sec)
-
cmd/erasure-server-pool-decom.go
// we do not have the pool anymore that we previously remembered, since all // the CLI checks out we can allow updates since we are mostly adding a pool here. update = true } if ok && pi.completed { logger.LogIf(GlobalContext, "decommission", fmt.Errorf("pool(%s) = %s is decommissioned, please remove from server command line", humanize.Ordinal(pi.position+1), k)) } } if len(specifiedPools) == len(rememberedPools) {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 42.2K bytes - Viewed (1) -
internal/grid/connection.go
xnet "github.com/minio/pkg/v3/net" "github.com/puzpuzpuz/xsync/v3" "github.com/tinylib/msgp/msgp" "github.com/zeebo/xxh3" ) func gridLogIf(ctx context.Context, err error, errKind ...any) { logger.LogIf(ctx, "grid", err, errKind...) } func gridLogIfNot(ctx context.Context, err error, ignored ...error) { logger.LogIfNot(ctx, "grid", err, ignored...) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 46.9K bytes - Viewed (0) -
cmd/api-errors.go
HTTPStatusCode: http.StatusBadRequest, }, // Generic Invalid-Request error. Should be used for response errors only for unlikely // corner case errors for which introducing new APIErrorCode is not worth it. LogIf() // should be used to log the error at the source of the error for debugging purposes. ErrInvalidRequest: { Code: "InvalidRequest", Description: "Invalid Request",Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 16 07:34:24 UTC 2025 - 93K bytes - Viewed (3) -
internal/logger/target/testlogger/testlogger.go
tb := t.current.Load() var logf func(format string, args ...any) if tb != nil { tbb := *tb tbb.Helper() switch t.action.Load() { case errorMessage: logf = tbb.Errorf case fatalMessage: logf = tbb.Fatalf default: logf = tbb.Logf } } else { switch t.action.Load() { case errorMessage: logf = func(format string, args ...any) {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 4K bytes - Viewed (0) -
internal/s3select/jstream/decoder_test.go
mockData = byte('[') ) r := newMockReader(failAfter, mockData) decoder := NewDecoder(r, -1) for mv := range decoder.Stream() { t.Logf("depth=%d offset=%d len=%d (%v)", mv.Depth, mv.Offset, mv.Length, mv.Value) } err := decoder.Err() t.Logf("got error: %s", err) if err == nil { t.Fatalf("missing expected decoder error") } derr, ok := err.(DecoderError) if !ok {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6.6K bytes - Viewed (0) -
internal/grid/connection_test.go
t.Helper() if err != nil { t.Fatal(err) } } wrapServer := func(handler http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { t.Logf("Got a %s request for: %v", r.Method, r.URL) handler.ServeHTTP(w, r) }) } connReady := make(chan struct{}) // We fake a local and remote server. localHost := hosts[0] remoteHost := hosts[1]
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 5.9K bytes - Viewed (0) -
cmd/http-tracer_test.go
for _, v := range finalStats.TotalS3Requests.APIStats { totalRequests += v } if totalRequests == 0 { t.Error("Expected some total requests to be recorded, but got zero") } t.Logf("Total requests recorded: %d", totalRequests) t.Logf("Race condition test passed - no races detected") } // TestHTTPAPIStatsRaceCondition tests concurrent access to HTTPAPIStats specifically. func TestRaulHTTPAPIStatsRaceCondition(t *testing.T) {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 5.3K bytes - Viewed (0) -
cmd/erasure-multipart-conditional_test.go
return oi.ETag != "wrong-etag-12345" }, } _, err := obj.NewMultipartUpload(ctx, bucket, object, opts) if !isErrReadQuorum(err) { t.Logf("Got error (as expected): %v", err) t.Logf("But expected read quorum error, not object-not-found error") } }) t.Run("if-match with correct ETag and read quorum failure", func(t *testing.T) {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 24 04:05:31 UTC 2025 - 6.9K bytes - Viewed (0) -
cmd/object-api-listobjects_test.go
// assertion following this. if !testCase.versioned { if len(testCase.resultL.Objects) != len(resultL.Objects) { t.Logf("want: %v", objInfoNames(testCase.resultL.Objects)) t.Logf("got: %v", objInfoNames(resultL.Objects))Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 10 18:57:03 UTC 2025 - 76.1K bytes - Viewed (0) -
cmd/local-locker_test.go
Quorum: &quorum, }) if !ok || err != nil { t.Fatal("failed:", err, ok) } } } start := time.Now() l.expireOldLocks(time.Hour) t.Logf("Scan Took: %v. Left: %d/%d", time.Since(start).Round(time.Millisecond), len(l.lockUID), len(l.lockMap)) if len(l.lockMap) != locks { t.Fatalf("objects deleted, want %d != got %d", locks, len(l.lockMap)) }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 11.8K bytes - Viewed (0)