Skip to content

Commit 206a7c4

Browse files
msau42k8s-publishing-bot
authored andcommitted
Move mount warnings to info logs for normal expected paths
Kubernetes-commit: f847565c081f598effde8fff159182200af88e40
1 parent e15cfd1 commit 206a7c4

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)