From 4d7c8e3bb82fd2398a6c4f97517306f05320816d Mon Sep 17 00:00:00 2001 From: dorman <37854724+dormanze@users.noreply.github.com> Date: Tue, 28 Feb 2023 01:59:47 +0800 Subject: [PATCH] Remove redundant log (#16710) Co-authored-by: z30001483 --- cmd/background-newdisks-heal-ops.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/background-newdisks-heal-ops.go b/cmd/background-newdisks-heal-ops.go index f904ff4d5..0e51ffb6f 100644 --- a/cmd/background-newdisks-heal-ops.go +++ b/cmd/background-newdisks-heal-ops.go @@ -450,7 +450,9 @@ func monitorLocalDisksAndHeal(ctx context.Context, z *erasureServerPools) { globalBackgroundHealState.setDiskHealingStatus(disk, true) if err := healFreshDisk(ctx, z, disk); err != nil { globalBackgroundHealState.setDiskHealingStatus(disk, false) - printEndpointError(disk, err, false) + if !errors.Is(err, context.Canceled) { + printEndpointError(disk, err, false) + } return } // Only upon success pop the healed disk.