summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-02-17 11:46:26 +0100
committerMatthew Heon <mheon@redhat.com>2021-02-18 10:21:35 -0500
commitbddbe989e3cd19158c1dbc86a92629b70fa4c9e9 (patch)
tree2bf724a3e137fef1656cc6199eb1bd860b94cc0c
parent865769d911254a0f2f650322825391f5b31413a2 (diff)
downloadpodman-bddbe989e3cd19158c1dbc86a92629b70fa4c9e9.tar.gz
podman-bddbe989e3cd19158c1dbc86a92629b70fa4c9e9.tar.bz2
podman-bddbe989e3cd19158c1dbc86a92629b70fa4c9e9.zip
infra: downgrade warning to debug
if the current process could not be moved to a different systemd cgroup do not raise a warning but debug message. [NO TESTS NEEDED] Closes: https://github.com/containers/podman/issues/9353 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/domain/infra/abi/system.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/system.go b/pkg/domain/infra/abi/system.go
index f29b98696..c68a12414 100644
--- a/pkg/domain/infra/abi/system.go
+++ b/pkg/domain/infra/abi/system.go
@@ -82,7 +82,7 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command)
unitName := fmt.Sprintf("podman-%d.scope", os.Getpid())
if runsUnderSystemd || conf.Engine.CgroupManager == config.SystemdCgroupsManager {
if err := utils.RunUnderSystemdScope(os.Getpid(), "user.slice", unitName); err != nil {
- logrus.Warnf("Failed to add podman to systemd sandbox cgroup: %v", err)
+ logrus.Debugf("Failed to add podman to systemd sandbox cgroup: %v", err)
}
}
}