diff options
author | Peter Hunt <pehunt@redhat.com> | 2019-05-18 19:39:11 -0400 |
---|---|---|
committer | Peter Hunt <pehunt@redhat.com> | 2019-05-28 11:10:57 -0400 |
commit | f61fa28d39298def261dded2644b8dcf45366415 (patch) | |
tree | 36081cf2a2644264099ffcf32836b8c85f9ddb04 /libpod/runtime_ctr.go | |
parent | 18d7fcb5eb1966c4d3748a50c625c01c1ebd9f5b (diff) | |
download | podman-f61fa28d39298def261dded2644b8dcf45366415.tar.gz podman-f61fa28d39298def261dded2644b8dcf45366415.tar.bz2 podman-f61fa28d39298def261dded2644b8dcf45366415.zip |
Added --log-driver and journald logging
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r-- | libpod/runtime_ctr.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go index c7758055f..25db10d33 100644 --- a/libpod/runtime_ctr.go +++ b/libpod/runtime_ctr.go @@ -196,7 +196,8 @@ func (r *Runtime) newContainer(ctx context.Context, rSpec *spec.Spec, options .. } } - if ctr.config.LogPath == "" { + // TODO magic string + if ctr.config.LogPath == "" && ctr.config.LogDriver != "journald" { ctr.config.LogPath = filepath.Join(ctr.config.StaticDir, "ctr.log") } |