From 247f0552dbf1f5aad01febd79254136bd7c8662b Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 10 Jan 2024 01:19:18 +0300 Subject: [PATCH] Fix debug log "killing..." in CSI --- csi/src/nodeserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csi/src/nodeserver.go b/csi/src/nodeserver.go index 7694a861..fe546d1a 100644 --- a/csi/src/nodeserver.go +++ b/csi/src/nodeserver.go @@ -188,7 +188,6 @@ func (ns *NodeServer) unmapNbd(devicePath string) func findByPidFile(pidFile string) (*os.Process, error) { - klog.Infof("killing process with PID from file %s", pidFile) pidBuf, err := os.ReadFile(pidFile) if (err != nil) { @@ -209,6 +208,7 @@ func findByPidFile(pidFile string) (*os.Process, error) func killByPidFile(pidFile string) error { + klog.Infof("killing process with PID from file %s", pidFile) proc, err := findByPidFile(pidFile) if (err != nil) {