From 5584e1fa6a92494583349d67c768ada5459cae6e Mon Sep 17 00:00:00 2001 From: vitaliy-leschenko <v.leschenko@vitaliy.org> Date: Mon, 8 Aug 2022 15:25:46 +0300 Subject: [PATCH] Fix logs messages --- pkg/mounter/safe_mounter_windows.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/mounter/safe_mounter_windows.go b/pkg/mounter/safe_mounter_windows.go index 8e718489077..b438b5ba7ad 100644 --- a/pkg/mounter/safe_mounter_windows.go +++ b/pkg/mounter/safe_mounter_windows.go @@ -107,7 +107,7 @@ func (mounter *csiProxyMounter) SMBMount(source, target, fsType string, mountOpt mappingPath, err := getRootMappingPath(source) if err != nil { - return fmt.Errorf("getRootMappingPath(%s) failed with %v", source, err) + return fmt.Errorf("getRootMappingPath(%s) failed with error: %v", source, err) } unlock := lock(mappingPath) defer unlock() @@ -126,7 +126,7 @@ func (mounter *csiProxyMounter) SMBMount(source, target, fsType string, mountOpt klog.V(2).Infof("mount %s on %s successfully", source, normalizedTarget) if err = incementRemotePathReferencesCount(mappingPath, source); err != nil { - klog.Warningf("incementMappingPathCount(%s, %s) failed with %v", mappingPath, source, err) + klog.Warningf("incementMappingPathCount(%s, %s) failed with error: %v", mappingPath, source, err) } return nil @@ -143,7 +143,7 @@ func (mounter *csiProxyMounter) SMBUnmount(target string) error { } mappingPath, err := getRootMappingPath(remotePath) if err != nil { - klog.Warningf("getRootMappingPath(%s) failed with %v", remotePath, err) + klog.Warningf("getRootMappingPath(%s) failed with error: %v", remotePath, err) } else { klog.V(4).Infof("SMBUnmount: remote path: %s, mapping path: %s", remotePath, mappingPath) @@ -151,7 +151,7 @@ func (mounter *csiProxyMounter) SMBUnmount(target string) error { defer unlock() if err := decrementRemotePathReferencesCount(mappingPath, remotePath); err != nil { - klog.Warningf("decrementMappingPathCount(%s, %d) failed with %v", mappingPath, remotePath, err) + klog.Warningf("decrementMappingPathCount(%s, %d) failed with error: %v", mappingPath, remotePath, err) } else { count := getRemotePathReferencesCount(mappingPath) if count == 0 {