From b01ddc7b0948550f7e3c55812096e63ba5eb7218 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Tue, 7 Aug 2018 17:10:44 -0400 Subject: Pass newly-added --log-level flag to Conmon Signed-off-by: Matthew Heon Closes: #1232 Approved by: rhatdan --- libpod/oci.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") } -- cgit v1.2.3-54-g00ecf