Skip to content

Commit ca730b8

Browse files
committed
Adding V(5) to the health check logs so that they can be filtered out if desired
1 parent 240f9c9 commit ca730b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/livenessprobe/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (h *healthProbe) checkProbe(w http.ResponseWriter, req *http.Request) {
5050
ctx, cancel := context.WithTimeout(req.Context(), *probeTimeout)
5151
defer cancel()
5252

53-
klog.Infof("Sending probe request to CSI driver %q", h.driverName)
53+
klog.V(5).Infof("Sending probe request to CSI driver %q", h.driverName)
5454
ready, err := rpc.Probe(ctx, h.conn)
5555
if err != nil {
5656
w.WriteHeader(http.StatusInternalServerError)
@@ -68,7 +68,7 @@ func (h *healthProbe) checkProbe(w http.ResponseWriter, req *http.Request) {
6868

6969
w.WriteHeader(http.StatusOK)
7070
w.Write([]byte(`ok`))
71-
klog.Infof("Health check succeeded")
71+
klog.V(5).Infof("Health check succeeded")
7272
}
7373

7474
func main() {

0 commit comments

Comments
 (0)