summaryrefslogtreecommitdiff
path: root/libpod/oci.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-06-27 15:55:12 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-29 08:22:27 +0000
commitc9eddd22ebce7e139c2eda5c50525fa1ca8268de (patch)
tree30de450c4e2da23f0ae79559a8916e0bb6abe838 /libpod/oci.go
parentd61d8a35e02303fab9661c086e8f80744fd953c4 (diff)
downloadpodman-c9eddd22ebce7e139c2eda5c50525fa1ca8268de.tar.gz
podman-c9eddd22ebce7e139c2eda5c50525fa1ca8268de.tar.bz2
podman-c9eddd22ebce7e139c2eda5c50525fa1ca8268de.zip
conmon no longer writes to syslog
If the caller sets up the app to be in logrus.DebugLevel, then we will add the --syslog flag to conmon to get all of the messages. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1014 Approved by: TomSweeneyRedHat
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)