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

master
Anis Elleuch 6 years ago committed by kannappanr
parent 0505ef83b5
commit e857b6741d
  1. 1
      cmd/healthcheck-handler.go

@ -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…
Cancel
Save