Skip to content

Commit

Permalink
Merge pull request #1611 from kubernetes-sigs/increase-win-log-level
Browse files Browse the repository at this point in the history
chore: increase windows host deployment driver log level
  • Loading branch information
andyzhangx committed Nov 29, 2023
2 parents 3a734e9 + 89a5d75 commit d6d1efe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/mounter/safe_mounter_host_process_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (mounter *winMounter) SMBMount(source, target, fsType string, mountOptions,
}

if !valid {
klog.V(4).Infof("RemotePath %s is not valid, removing now", remotePath)
klog.Warningf("RemotePath %s is not valid, removing now", remotePath)
err := smb.RemoveSmbGlobalMapping(remotePath)
if err != nil {
klog.Errorf("RemoveSmbGlobalMapping(%s) failed with %v", remotePath, err)
Expand All @@ -97,7 +97,7 @@ func (mounter *winMounter) SMBMount(source, target, fsType string, mountOptions,
}

if !isMapped {
klog.V(4).Infof("Remote %s not mapped. Mapping now!", remotePath)
klog.V(2).Infof("Remote %s not mapped. Mapping now!", remotePath)
username := mountOptions[0]
password := sensitiveMountOptions[0]
err := smb.NewSmbGlobalMapping(remotePath, username, password)
Expand Down Expand Up @@ -126,7 +126,7 @@ func (mounter *winMounter) SMBMount(source, target, fsType string, mountOptions,
}

func (mounter *winMounter) SMBUnmount(target string) error {
klog.V(4).Infof("SMBUnmount: local path: %s", target)
klog.V(2).Infof("SMBUnmount: local path: %s", target)
return mounter.Rmdir(target)
}

Expand All @@ -142,7 +142,7 @@ func (mounter *winMounter) Rmdir(path string) error {

// Unmount - Removes the directory - equivalent to unmount on Linux.
func (mounter *winMounter) Unmount(target string) error {
klog.V(4).Infof("Unmount: %s", target)
klog.V(2).Infof("Unmount: %s", target)
return mounter.Rmdir(target)
}

Expand Down

0 comments on commit d6d1efe

Please sign in to comment.