mirror of
https://github.com/minio/minio
synced 2024-11-05 17:34:01 +00:00
Add one log in health checker liveness code (#7861)
This commit is contained in:
parent
0505ef83b5
commit
e857b6741d
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ func LivenessCheckHandler(w http.ResponseWriter, r *http.Request) {
|
|||
if s.Backend.Type == Unknown {
|
||||
// ListBuckets to confirm gateway backend is up
|
||||
if _, err := objLayer.ListBuckets(ctx); err != nil {
|
||||
logger.LogOnceIf(ctx, err, struct{}{})
|
||||
writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue