Skip to content

Commit

Permalink
Merge pull request #80 from hexfusion/cp-12677
Browse files Browse the repository at this point in the history
Bug 1958405: UPSTREAM: <carry>: etcdserver/api/etcdhttp: log successful etcd server side health check in debug level
  • Loading branch information
openshift-merge-robot committed May 14, 2021
2 parents 2de7094 + 7c83699 commit a8af4d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etcdserver/api/etcdhttp/metrics.go
Expand Up @@ -62,7 +62,7 @@ func NewHealthHandler(lg *zap.Logger, hfunc func() Health) http.HandlerFunc {
}
w.WriteHeader(http.StatusOK)
w.Write(d)
lg.Info("/health OK", zap.Int("status-code", http.StatusOK))
lg.Debug("/health OK", zap.Int("status-code", http.StatusOK))
}
}

Expand Down Expand Up @@ -124,7 +124,7 @@ func checkHealth(lg *zap.Logger, srv etcdserver.ServerV2) Health {

if h.Health == "true" {
healthSuccess.Inc()
lg.Info("serving /health true")
lg.Debug("serving /health true")
} else {
healthFailed.Inc()
}
Expand Down

0 comments on commit a8af4d0

Please sign in to comment.