mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
log a warning on unhealthy healthz (#3529)
This commit is contained in:
parent
8179ed57b9
commit
cba44e5151
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user