Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWX-36850: reduce verbosity of frequent ops by making those Debug #2447

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/mount/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,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 @@ -368,7 +368,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 @@ -416,7 +416,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 @@ -431,7 +431,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
Loading