change klog to log volume name instead of entire spec in GetDeviceMountPath

Signed-off-by: Swagat Bora <sbora@amazon.com>
This commit is contained in:
Swagat Bora
2025-09-18 23:46:11 +00:00
parent a742db1bf6
commit 9d5ddd9fac

View File

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