summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-29 08:42:13 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-03-29 08:45:11 -0400
commit195f340ad432436f875befa546eff2a0d801a620 (patch)
tree7357927faa58bccb5e5e88f97474b3d0eadfab58
parent259004f0a9cc18018127baec0bfcf8bc091dabb6 (diff)
downloadpodman-195f340ad432436f875befa546eff2a0d801a620.tar.gz
podman-195f340ad432436f875befa546eff2a0d801a620.tar.bz2
podman-195f340ad432436f875befa546eff2a0d801a620.zip
[NO TESTS NEEDED] Drop Warning to Info, if cgroups not mounted
If I run podman within a container without /sys/fs/cgroups mounted, we get this warning, which the user can not do much about. I don't see a reason for requiring this warning to show by default, so we should drop it to Info. User can not do anything about it either, and code works well with the somewhat expected error. Helps fix: https://github.com/containers/podman/issues/9753 Signed-off-by: Daniel J Walsh <dwalsh@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 9f7c8919b..a3e753384 100644
--- a/pkg/domain/infra/abi/system.go
+++ b/pkg/domain/infra/abi/system.go
@@ -67,7 +67,7 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command)
if os.Geteuid() == 0 {
ownsCgroup, err := cgroups.UserOwnsCurrentSystemdCgroup()
if err != nil {
- logrus.Warnf("Failed to detect the owner for the current cgroup: %v", err)
+ logrus.Infof("Failed to detect the owner for the current cgroup: %v", err)
}
if !ownsCgroup {
conf, err := ic.Config(context.Background())