diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/run.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cmd/podman/run.go b/cmd/podman/run.go index 5247f536c..79e238da0 100644 --- a/cmd/podman/run.go +++ b/cmd/podman/run.go @@ -123,11 +123,13 @@ func runCmd(c *cli.Context) error { return err } - if logrus.GetLevel() == logrus.DebugLevel { - logrus.Debugf("New container created %q", ctr.ID()) + logrus.Debugf("New container created %q", ctr.ID()) - p, _ := ctr.CGroupPath()("") - logrus.Debugf("container %q has CgroupParent %q", ctr.ID(), p) + if logrus.GetLevel() == logrus.DebugLevel { + cgroupPath, err := ctr.CGroupPath() + if err == nil { + logrus.Debugf("container %q has CgroupParent %q", ctr.ID(), cgroupPath) + } } createConfigJSON, err := json.Marshal(createConfig) |