mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 13:10:22 +03:00
fix: log only catastrophic errors in prepare storage (#9189)
This commit is contained in:
@@ -246,7 +246,9 @@ 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 {
|
||||||
logger.Info("Unable to read 'format.json' from %s: %v\n", endpoints[i], sErr)
|
if sErr != nil {
|
||||||
|
logger.Info("Unable to read 'format.json' from %s: %v\n", endpoints[i], sErr)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user