aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-08-07 17:10:44 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-08 19:23:41 +0000
commitb01ddc7b0948550f7e3c55812096e63ba5eb7218 (patch)
tree0a7bff6263695a236b125895622c59ef0bd7d297
parentd1257b1a0bdf28072610a3a9ead424d4f3cfe5cb (diff)
downloadpodman-b01ddc7b0948550f7e3c55812096e63ba5eb7218.tar.gz
podman-b01ddc7b0948550f7e3c55812096e63ba5eb7218.tar.bz2
podman-b01ddc7b0948550f7e3c55812096e63ba5eb7218.zip
Pass newly-added --log-level flag to Conmon
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #1232 Approved by: rhatdan
-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")
}