mirror of
https://github.com/minio/minio.git
synced 2025-04-16 17:00:07 -04:00
Add one log in health checker liveness code (#7861)
This commit is contained in:
parent
0505ef83b5
commit
e857b6741d
@ -62,6 +62,7 @@ func LivenessCheckHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
if s.Backend.Type == Unknown {
|
if s.Backend.Type == Unknown {
|
||||||
// ListBuckets to confirm gateway backend is up
|
// ListBuckets to confirm gateway backend is up
|
||||||
if _, err := objLayer.ListBuckets(ctx); err != nil {
|
if _, err := objLayer.ListBuckets(ctx); err != nil {
|
||||||
|
logger.LogOnceIf(ctx, err, struct{}{})
|
||||||
writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone)
|
writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user