mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Avoid unnecessary logging for policy not found errors (#6104)
This commit is contained in:
committed by
kannappanr
parent
f53d511798
commit
92a6676a2f
@@ -772,7 +772,6 @@ func (l *b2Objects) GetBucketPolicy(ctx context.Context, bucket string) (*policy
|
||||
// just return back as policy not found for all cases.
|
||||
// CreateBucket always sets the value to allPrivate by default.
|
||||
if bkt.Type != bucketTypeReadOnly {
|
||||
logger.LogIf(ctx, minio.BucketPolicyNotFound{Bucket: bucket})
|
||||
return nil, minio.BucketPolicyNotFound{Bucket: bucket}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user