Add one log in health checker liveness code (#7861)

This commit is contained in:
Anis Elleuch 2019-07-07 00:38:39 +01:00 committed by kannappanr
parent 0505ef83b5
commit e857b6741d

View file

@ -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
}