From 9d5ddd9faca9ecbcddbe25970945294bdbe0e41a Mon Sep 17 00:00:00 2001 From: Swagat Bora Date: Thu, 18 Sep 2025 23:46:11 +0000 Subject: [PATCH] change klog to log volume name instead of entire spec in GetDeviceMountPath Signed-off-by: Swagat Bora --- pkg/volume/csi/csi_attacher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/csi/csi_attacher.go b/pkg/volume/csi/csi_attacher.go index 314fe68a85e..c4fd435064f 100644 --- a/pkg/volume/csi/csi_attacher.go +++ b/pkg/volume/csi/csi_attacher.go @@ -252,7 +252,7 @@ func (c *csiAttacher) VolumesAreAttached(specs []*volume.Spec, nodeName types.No } func (c *csiAttacher) GetDeviceMountPath(spec *volume.Spec) (string, error) { - klog.V(4).Info(log("attacher.GetDeviceMountPath(%v)", spec)) + klog.V(4).Info(log("attacher.GetDeviceMountPath for volume(%s)", spec.Name())) deviceMountPath, err := makeDeviceMountPath(c.plugin, spec) if err != nil { return "", errors.New(log("attacher.GetDeviceMountPath failed to make device mount path: %v", err))