Skip to content

Commit 8aca367

Browse files
authored
Merge pull request #57 from stefansedich/add-v-to-healthcheck-logs
Add v to healthcheck logs
2 parents 240f9c9 + 4d87068 commit 8aca367

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-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() {

deployment/kubernetes/hostpath-with-livenessprobe.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ spec:
187187
name: socket-dir
188188
image: quay.io/k8scsi/livenessprobe:v0.2.0
189189
args:
190+
- --v=5
190191
- --csi-address=/csi/csi.sock
191192
- --connection-timeout=3s
192193
volumes:

deployment/kubernetes/livenessprobe-sidecar.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
name: socket-dir
5050
image: quay.io/k8scsi/livenessprobe:v0.2.0
5151
args:
52+
- --v=5
5253
- --csi-address=/csi/csi.sock
5354
- --connection-timeout=3s
5455
#

0 commit comments

Comments
 (0)