mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
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>
This commit is contained in:

committed by
Valentin Rothberg

parent
ab4d0cf908
commit
dac2d31a24
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user