mirror of
https://github.com/minio/minio.git
synced 2025-04-20 10:37:31 -04:00
fix: log only catastrophic errors in prepare storage (#9189)
This commit is contained in:
parent
818d3bcaf5
commit
ff932ca2a0
@ -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
|
// not critical error but still print the error, nonetheless, which is perhaps unhandled
|
||||||
if sErr != errUnformattedDisk && sErr != errDiskNotFound && retryCount >= 5 {
|
if sErr != errUnformattedDisk && sErr != errDiskNotFound && retryCount >= 5 {
|
||||||
|
if sErr != nil {
|
||||||
logger.Info("Unable to read 'format.json' from %s: %v\n", endpoints[i], sErr)
|
logger.Info("Unable to read 'format.json' from %s: %v\n", endpoints[i], sErr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Pre-emptively check if one of the formatted disks
|
// Pre-emptively check if one of the formatted disks
|
||||||
// is invalid. This function returns success for the
|
// is invalid. This function returns success for the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user