mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
remove errant logs for disconnected remote (#19793)
Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
parent
7d29030292
commit
d38e020b29
@ -17,8 +17,10 @@ func replLogOnceIf(ctx context.Context, err error, id string, errKind ...interfa
|
|||||||
}
|
}
|
||||||
|
|
||||||
func iamLogIf(ctx context.Context, err error, errKind ...interface{}) {
|
func iamLogIf(ctx context.Context, err error, errKind ...interface{}) {
|
||||||
|
if !errors.Is(err, grid.ErrDisconnected) {
|
||||||
logger.LogIf(ctx, "iam", err, errKind...)
|
logger.LogIf(ctx, "iam", err, errKind...)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func iamLogEvent(ctx context.Context, msg string, args ...interface{}) {
|
func iamLogEvent(ctx context.Context, msg string, args ...interface{}) {
|
||||||
logger.Event(ctx, "iam", msg, args...)
|
logger.Event(ctx, "iam", msg, args...)
|
||||||
|
@ -28,6 +28,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/minio/minio/internal/grid"
|
||||||
xioutil "github.com/minio/minio/internal/ioutil"
|
xioutil "github.com/minio/minio/internal/ioutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -133,8 +134,8 @@ func (z *erasureServerPools) listPath(ctx context.Context, o *listPathOptions) (
|
|||||||
// request canceled, no entries to return
|
// request canceled, no entries to return
|
||||||
return entries, io.EOF
|
return entries, io.EOF
|
||||||
}
|
}
|
||||||
if !errors.Is(err, context.DeadlineExceeded) {
|
if !IsErr(err, context.DeadlineExceeded, grid.ErrDisconnected) {
|
||||||
// Report error once per bucket, but continue listing.
|
// Report error once per bucket, but continue listing.x
|
||||||
storageLogOnceIf(ctx, err, "GetMetacacheListing:"+o.Bucket)
|
storageLogOnceIf(ctx, err, "GetMetacacheListing:"+o.Bucket)
|
||||||
}
|
}
|
||||||
o.Transient = true
|
o.Transient = true
|
||||||
|
Loading…
Reference in New Issue
Block a user