From 792ee48d2caf7ff8c13b902b3ce3f97654e84cd0 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 8 Mar 2020 12:12:07 -0700 Subject: [PATCH] add additional logging during server formatting (#9102) --- cmd/prepare-storage.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/prepare-storage.go b/cmd/prepare-storage.go index ec337c197..fb80442ec 100644 --- a/cmd/prepare-storage.go +++ b/cmd/prepare-storage.go @@ -244,6 +244,10 @@ func connectLoadInitFormats(retryCount int, firstDisk bool, endpoints Endpoints, if _, ok := formatCriticalErrors[sErr]; ok { return nil, fmt.Errorf("Disk %s: %w", endpoints[i], sErr) } + // not critical error but still print the error, nonetheless, which is perhaps unhandled + if sErr != errUnformattedDisk && sErr != errDiskNotFound && retryCount >= 5 { + logger.Info("Unable to read 'format.json' from %s: %v\n", endpoints[i], sErr) + } } // Pre-emptively check if one of the formatted disks