Skip to content

Commit

Permalink
Do not display error logs if user does not have listbuckets privilege (
Browse files Browse the repository at this point in the history
  • Loading branch information
kannappanr authored Jun 9, 2019
1 parent 7abadfc commit 1008c2c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions cmd/gateway/gcs/gateway-gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}

Expand Down
1 change: 0 additions & 1 deletion cmd/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1008c2c

Please sign in to comment.