From db29e8b0b93f43ba92c1458e0aafd0aed410abf6 Mon Sep 17 00:00:00 2001 From: yuefanxiao <591649725@qq.com> Date: Wed, 3 Jan 2024 17:22:08 +0800 Subject: [PATCH] cleanup:change the error log when disconnecting volume Signed-off-by: yuefanxiao <591649725@qq.com> --- pkg/iscsi/iscsi_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/iscsi/iscsi_util.go b/pkg/iscsi/iscsi_util.go index 929fd298..318d9565 100644 --- a/pkg/iscsi/iscsi_util.go +++ b/pkg/iscsi/iscsi_util.go @@ -118,7 +118,7 @@ func (util *ISCSIUtil) DetachDisk(c iscsiDiskUnmounter, targetPath string) error klog.Info("detaching ISCSI device") err = connector.DisconnectVolume() if err != nil { - klog.Errorf("iscsi detach disk: failed to get iscsi config from path %s Error: %v", targetPath, err) + klog.Errorf("iscsi detach disk: failed to disconnect volume Error: %v", err) return err }