diff options
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/oci.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/oci.go b/libpod/oci.go index c7672a04d..871069627 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -280,6 +280,12 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string) (er if r.noPivot { args = append(args, "--no-pivot") } + + if logrus.GetLevel() == logrus.DebugLevel { + logrus.Debug("%s messages will be logged to syslog", r.conmonPath) + args = append(args, "--syslog") + } + logrus.WithFields(logrus.Fields{ "args": args, }).Debugf("running conmon: %s", r.conmonPath) |