diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2021-06-15 10:35:24 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-06-22 11:18:46 +0200 |
commit | dac2d31a247c80e7a61a39641deb3a987fd88159 (patch) | |
tree | cd2dc0e98669099373ed014a18ada2e2d4bfc905 | |
parent | ab4d0cf908e9d24d321b52b419ebfb4ab5802029 (diff) | |
download | podman-dac2d31a247c80e7a61a39641deb3a987fd88159.tar.gz podman-dac2d31a247c80e7a61a39641deb3a987fd88159.tar.bz2 podman-dac2d31a247c80e7a61a39641deb3a987fd88159.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.
Backport of commit 969cc3237be5.
[NO TESTS NEEDED]
Closes: https://github.com/containers/podman/issues/10674
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
-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 ad6192255..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", pid, newCgroup) + 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", string(pid), newCgroup) + logrus.Debugf("Cannot move process %s to cgroup %q: %v", string(pid), newCgroup, err) } } } |