log a warning on unhealthy healthz (#3529)

This commit is contained in:
Preston Van Loon 2019-09-19 08:09:56 -07:00 committed by Nishant Das
parent 8179ed57b9
commit cba44e5151

View File

@ -75,6 +75,7 @@ func (s *Service) healthzHandler(w http.ResponseWriter, _ *http.Request) {
// Write status header
if hasError {
w.WriteHeader(http.StatusInternalServerError)
log.WithField("statuses", statuses).Warn("Node is unhealthy!")
} else {
w.WriteHeader(http.StatusOK)
}