Skip to content

Commit 3874e43

Browse files
committed
provide verbose output when health check fails
1 parent 583ff36 commit 3874e43

File tree

1 file changed

+1
-0
lines changed
  • staging/src/k8s.io/apiserver/pkg/server/healthz

1 file changed

+1
-0
lines changed

staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func handleRootHealthz(checks ...HealthzChecker) http.HandlerFunc {
181181
}
182182
// always be verbose on failure
183183
if failed {
184+
klog.V(2).Infof("%vhealthz check failed", verboseOut.String())
184185
http.Error(w, fmt.Sprintf("%vhealthz check failed", verboseOut.String()), http.StatusInternalServerError)
185186
return
186187
}

0 commit comments

Comments
 (0)