Skip to content

Commit 09a42ba

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request kubernetes#47717 from chentao1596/remove-extra-log-parameter
Automatic merge from submit-queue (batch tested with PRs 47717, 53896). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Delete the redundant parameter flag What this PR does / why we need it: Delete redundant parameter flag, otherwise the log will be show like: Warning: path "/var/lib/kubelet/pods/3c6c4869-4d02-11e7-9685-fa163eeda0fa/volumes" does not exist: %!q(MISSING) thank you!
2 parents 5adfb24 + 42845e1 commit 09a42ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/kubelet_getters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (kl *Kubelet) getPodVolumePathListFromDisk(podUID types.UID) ([]string, err
219219
if pathExists, pathErr := volumeutil.PathExists(podVolDir); pathErr != nil {
220220
return volumes, fmt.Errorf("Error checking if path %q exists: %v", podVolDir, pathErr)
221221
} else if !pathExists {
222-
glog.Warningf("Warning: path %q does not exist: %q", podVolDir)
222+
glog.Warningf("Path %q does not exist", podVolDir)
223223
return volumes, nil
224224
}
225225

0 commit comments

Comments
 (0)