summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/oci.go')
-rw-r--r--libpod/oci.go6
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)