mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +00:00
Merge pull request #120147 from msau42/mount-logs
Move mount warnings to info logs for normal expected paths
This commit is contained in:
commit
88f962c95a
@ -139,7 +139,7 @@ func removePathIfNotMountPoint(mountPath string, mounter Interface, extensiveMou
|
|||||||
}
|
}
|
||||||
|
|
||||||
if notMnt {
|
if notMnt {
|
||||||
klog.Warningf("Warning: %q is not a mountpoint, deleting", mountPath)
|
klog.V(4).Infof("%q is not a mountpoint, deleting", mountPath)
|
||||||
return notMnt, os.Remove(mountPath)
|
return notMnt, os.Remove(mountPath)
|
||||||
}
|
}
|
||||||
return notMnt, nil
|
return notMnt, nil
|
||||||
@ -147,7 +147,7 @@ func removePathIfNotMountPoint(mountPath string, mounter Interface, extensiveMou
|
|||||||
|
|
||||||
// removePath attempts to remove the directory. Returns nil if the directory was removed or does not exist.
|
// removePath attempts to remove the directory. Returns nil if the directory was removed or does not exist.
|
||||||
func removePath(mountPath string) error {
|
func removePath(mountPath string) error {
|
||||||
klog.V(4).Infof("Warning: deleting path %q", mountPath)
|
klog.V(4).Infof("Deleting path %q", mountPath)
|
||||||
err := os.Remove(mountPath)
|
err := os.Remove(mountPath)
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
klog.V(4).Infof("%q does not exist", mountPath)
|
klog.V(4).Infof("%q does not exist", mountPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user