Skip to content

Commit 70fd466

Browse files
Merge pull request #120147 from msau42/mount-logs
Move mount warnings to info logs for normal expected paths Kubernetes-commit: 88f962c95af8c3a5acf0fa76ed4cd3c01c68e6fb
2 parents e15cfd1 + 206a7c4 commit 70fd466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mount_helper_common.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ func removePathIfNotMountPoint(mountPath string, mounter Interface, extensiveMou
139139
}
140140

141141
if notMnt {
142-
klog.Warningf("Warning: %q is not a mountpoint, deleting", mountPath)
142+
klog.V(4).Infof("%q is not a mountpoint, deleting", mountPath)
143143
return notMnt, os.Remove(mountPath)
144144
}
145145
return notMnt, nil
146146
}
147147

148148
// removePath attempts to remove the directory. Returns nil if the directory was removed or does not exist.
149149
func removePath(mountPath string) error {
150-
klog.V(4).Infof("Warning: deleting path %q", mountPath)
150+
klog.V(4).Infof("Deleting path %q", mountPath)
151151
err := os.Remove(mountPath)
152152
if os.IsNotExist(err) {
153153
klog.V(4).Infof("%q does not exist", mountPath)

0 commit comments

Comments
 (0)