Merge pull request #75214 from deads2k/health

provide verbose output when health check fails
This commit is contained in:
Kubernetes Prow Robot
2019-03-22 05:22:31 -07:00
committed by GitHub

View File

@@ -181,6 +181,7 @@ func handleRootHealthz(checks ...HealthzChecker) http.HandlerFunc {
}
// always be verbose on failure
if failed {
klog.V(2).Infof("%vhealthz check failed", verboseOut.String())
http.Error(w, fmt.Sprintf("%vhealthz check failed", verboseOut.String()), http.StatusInternalServerError)
return
}