log formatting only the first time (#8846)

This commit is contained in:
Harshavardhana
2020-01-17 15:39:07 -08:00
committed by GitHub
parent fc5213258e
commit 23e46f9dba
5 changed files with 12 additions and 11 deletions

View File

@@ -62,9 +62,7 @@ func newXLZones(endpointZones EndpointZones) (ObjectLayer, error) {
)
local := endpointZones.FirstLocal()
for i, ep := range endpointZones {
logger.Info("Formatting %v zone, %v set(s), %v drives per set.",
i+1, ep.SetCount, ep.DrivesPerSet)
formats[i], err = waitForFormatXL(local, ep.Endpoints,
formats[i], err = waitForFormatXL(local, ep.Endpoints, i+1,
ep.SetCount, ep.DrivesPerSet, deploymentID)
if err != nil {
return nil, err