From ffa6b45d008f2122a60589b76ffbd3415a8f90c3 Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Thu, 17 May 2018 17:26:16 -0700 Subject: [PATCH] Remove treewalk abort log message (#5953) Log doesn't add any value and can be removed. Fixes #5943 --- cmd/tree-walk.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/tree-walk.go b/cmd/tree-walk.go index 75de800ea..98228390e 100644 --- a/cmd/tree-walk.go +++ b/cmd/tree-walk.go @@ -20,8 +20,6 @@ import ( "context" "sort" "strings" - - "github.com/minio/minio/cmd/logger" ) // Tree walk result carries results of tree walking. @@ -147,7 +145,6 @@ func doTreeWalk(ctx context.Context, bucket, prefixDir, entryPrefixMatch, marker if err != nil { select { case <-endWalkCh: - logger.LogIf(ctx, errWalkAbort) return errWalkAbort case resultCh <- treeWalkResult{err: err}: return err @@ -229,7 +226,6 @@ func doTreeWalk(ctx context.Context, bucket, prefixDir, entryPrefixMatch, marker isEOF := ((i == len(entries)-1) && isEnd) select { case <-endWalkCh: - logger.LogIf(ctx, errWalkAbort) return errWalkAbort case resultCh <- treeWalkResult{entry: pathJoin(prefixDir, entry), end: isEOF}: }