diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-06-19 20:33:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 20:33:00 +0200 |
commit | e90d769af34df582edd31f29d6c81acc4256a816 (patch) | |
tree | 82e38302203aac978f205581dfd148d46b7380ff /libpod | |
parent | 4d470c73ca9f441ced162431270977b967b547a1 (diff) | |
parent | 47e2ad8ec37a136851639145579cba34ab973e0d (diff) | |
download | podman-e90d769af34df582edd31f29d6c81acc4256a816.tar.gz podman-e90d769af34df582edd31f29d6c81acc4256a816.tar.bz2 podman-e90d769af34df582edd31f29d6c81acc4256a816.zip |
Merge pull request #3375 from haircommander/json-file-hotfix
Spoof json-file logging support
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/oci_linux.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/oci_linux.go b/libpod/oci_linux.go index 9bbefdb06..6e84c0759 100644 --- a/libpod/oci_linux.go +++ b/libpod/oci_linux.go @@ -246,7 +246,9 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res } logDriver := KubernetesLogging - if ctr.LogDriver() != "" { + if ctr.LogDriver() == JSONLogging { + logrus.Errorf("json-file logging specified but not supported. Choosing k8s-file logging instead") + } else if ctr.LogDriver() != "" { logDriver = ctr.LogDriver() } args = append(args, "-l", fmt.Sprintf("%s:%s", logDriver, ctr.LogPath())) |