Skip to content

Commit

Permalink
PWX-36850: reduce verbosity of frequent ops by making those Debug (#2447
Browse files Browse the repository at this point in the history
) (#2448)

Signed-off-by: pnookala-px <[email protected]>
  • Loading branch information
pnookala-px authored Jun 5, 2024
1 parent dc3c38a commit a7ffd15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/mount/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down Expand Up @@ -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 {
Expand All @@ -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
}
Expand Down

0 comments on commit a7ffd15

Please sign in to comment.