diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-06-15 10:35:24 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-06-16 08:49:57 +0200 |
commit | 969cc3237be54ea3c3f65cab30968cf089662b22 (patch) | |
tree | 9e69a43dfaf4e593bb174e40da19ec15124b6304 /utils/utils_supported.go | |
parent | 51747973169cfba865a762df2d6098f5befa25a8 (diff) | |
download | podman-969cc3237be54ea3c3f65cab30968cf089662b22.tar.gz podman-969cc3237be54ea3c3f65cab30968cf089662b22.tar.bz2 podman-969cc3237be54ea3c3f65cab30968cf089662b22.zip |
utils: move message from warning to debug
if a pid could not be moved to a new cgroup, print a debug message
instead of a warning.
Closes: https://github.com/containers/podman/issues/10674
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'utils/utils_supported.go')
-rw-r--r-- | utils/utils_supported.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/utils_supported.go b/utils/utils_supported.go index 8e2966bfc..8668e3fba 100644 --- a/utils/utils_supported.go +++ b/utils/utils_supported.go @@ -172,7 +172,7 @@ func moveUnderCgroup(cgroup, subtree string, processes []uint32) error { if len(processes) > 0 { for _, pid := range processes { if _, err := f.Write([]byte(fmt.Sprintf("%d\n", pid))); err != nil { - logrus.Warnf("Cannot move process %d to cgroup %q: %v", pid, newCgroup, err) + logrus.Debugf("Cannot move process %d to cgroup %q: %v", pid, newCgroup, err) } } } else { @@ -185,7 +185,7 @@ func moveUnderCgroup(cgroup, subtree string, processes []uint32) error { continue } if _, err := f.Write(pid); err != nil { - logrus.Warnf("Cannot move process %s to cgroup %q: %v", string(pid), newCgroup, err) + logrus.Debugf("Cannot move process %s to cgroup %q: %v", string(pid), newCgroup, err) } } } |