summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-02-17 11:46:26 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-02-17 13:18:27 +0100
commit12b6342c3d96cabb60971a8633dce0804e19ac5c (patch)
tree87050cc35be697542babf6614b8cb058c90a3311
parent50042120e947fc7aee601f0c65ea485daf604ee1 (diff)
downloadpodman-12b6342c3d96cabb60971a8633dce0804e19ac5c.tar.gz
podman-12b6342c3d96cabb60971a8633dce0804e19ac5c.tar.bz2
podman-12b6342c3d96cabb60971a8633dce0804e19ac5c.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)
}
}
}