diff --git a/cmd/gateway/gcs/gateway-gcs.go b/cmd/gateway/gcs/gateway-gcs.go index 81a7a77e6..6d23ce053 100644 --- a/cmd/gateway/gcs/gateway-gcs.go +++ b/cmd/gateway/gcs/gateway-gcs.go @@ -395,10 +395,6 @@ func (l *gcsGateway) CleanupGCSMinioSysTmp(ctx context.Context) { for { attrs, err := it.Next() if err != nil { - if err != iterator.Done { - ctx := logger.SetReqInfo(context.Background(), &logger.ReqInfo{}) - logger.LogIf(ctx, err) - } break } l.CleanupGCSMinioSysTmpBucket(ctx, attrs.Name) @@ -461,7 +457,6 @@ func (l *gcsGateway) ListBuckets(ctx context.Context) (buckets []minio.BucketInf } if ierr != nil { - logger.LogIf(ctx, ierr) return buckets, gcsToObjectError(ierr) } diff --git a/cmd/policy.go b/cmd/policy.go index b30fba3db..e5f7230dc 100644 --- a/cmd/policy.go +++ b/cmd/policy.go @@ -114,7 +114,6 @@ func (sys *PolicySys) IsAllowed(args policy.Args) bool { func (sys *PolicySys) refresh(objAPI ObjectLayer) error { buckets, err := objAPI.ListBuckets(context.Background()) if err != nil { - logger.LogIf(context.Background(), err) return err } sys.removeDeletedBuckets(buckets)