summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/oci.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpod/oci.go b/libpod/oci.go
index 5ae3406ac..11224cf91 100644
--- a/libpod/oci.go
+++ b/libpod/oci.go
@@ -279,7 +279,10 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string) (er
args = append(args, "--no-pivot")
}
- if logrus.GetLevel() == logrus.DebugLevel {
+ logLevel := logrus.GetLevel()
+ args = append(args, "--log-level", logLevel.String())
+
+ if logLevel == logrus.DebugLevel {
logrus.Debug("%s messages will be logged to syslog", r.conmonPath)
args = append(args, "--syslog")
}