provide verbose output when health check fails

This commit is contained in:
David Eads 2019-03-08 15:49:29 -05:00
parent 583ff363fa
commit 3874e43550

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
}