From a7ffd150502e9d1def4950b5b5c45797fcd0dec6 Mon Sep 17 00:00:00 2001 From: pnookala-px <127919775+pnookala-px@users.noreply.github.com> Date: Wed, 5 Jun 2024 09:55:50 +0530 Subject: [PATCH] PWX-36850: reduce verbosity of frequent ops by making those Debug (#2447) (#2448) Signed-off-by: pnookala-px --- pkg/mount/mount.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/mount/mount.go b/pkg/mount/mount.go index c791bae03..3facb35cf 100644 --- a/pkg/mount/mount.go +++ b/pkg/mount/mount.go @@ -349,7 +349,7 @@ func (m *Mounter) reload(device string, newM *Info) error { // Old mountable had no mounts, copy over new mounts. oldM, ok := m.mounts[device] if !ok { - logrus.Infof("Reload: Adding the tuple to device path[%v:%v]", device, newM.Fs) + logrus.Debugf("Reload: Adding the tuple to device path[%v:%v]", device, newM.Fs) m.mounts[device] = newM return nil } @@ -365,7 +365,7 @@ func (m *Mounter) reload(device string, newM *Info) error { } // Purge old mounts. - logrus.Infof("Reload: Adding the device tuple [%v:%v] to mount table", device, newM.Fs) + logrus.Debugf("Reload: Adding the device tuple [%v:%v] to mount table", device, newM.Fs) m.mounts[device] = newM return nil } @@ -413,7 +413,7 @@ func (m *Mounter) load(prefixes []*regexp.Regexp, fmp findMountPoint) error { Mountpoint: make([]*PathInfo, 0), } m.mounts[mountSourcePath] = mount - logrus.Infof("load: Adding the device[%v:%v] to mount table", deviceSourcePath, v.FSType) + logrus.Debugf("load: Adding the device[%v:%v] to mount table", deviceSourcePath, v.FSType) } // Allow Load to be called multiple times. for _, p := range mount.Mountpoint { @@ -428,7 +428,7 @@ func (m *Mounter) load(prefixes []*regexp.Regexp, fmp findMountPoint) error { Path: normalizeMountPath(v.Mountpoint), } mount.Mountpoint = append(mount.Mountpoint, pi) - logrus.Infof("load: Adding path to [%v:%v] to MountTable Entry for device [%v:%v]", v.Root, v.Mountpoint, deviceSourcePath, v.FSType) + logrus.Debugf("load: Adding path to [%v:%v] to MountTable Entry for device [%v:%v]", v.Root, v.Mountpoint, deviceSourcePath, v.FSType) if updatePaths { m.paths[v.Mountpoint] = mountSourcePath }