fix: log only catastrophic errors in prepare storage (#9189)

master
Harshavardhana 5 years ago committed by GitHub
parent 818d3bcaf5
commit ff932ca2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/prepare-storage.go

@ -246,9 +246,11 @@ func connectLoadInitFormats(retryCount int, firstDisk bool, endpoints Endpoints,
}
// not critical error but still print the error, nonetheless, which is perhaps unhandled
if sErr != errUnformattedDisk && sErr != errDiskNotFound && retryCount >= 5 {
if sErr != nil {
logger.Info("Unable to read 'format.json' from %s: %v\n", endpoints[i], sErr)
}
}
}
// Pre-emptively check if one of the formatted disks
// is invalid. This function returns success for the

Loading…
Cancel
Save