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) {