diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-24 02:40:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 02:40:04 +0100 |
commit | 231c528a4db9d312bd43b2ce15017e734349a12f (patch) | |
tree | 79947af2dcac81c23abe11369c2d4e09a80f60e0 /libpod/logs/log.go | |
parent | 9ac5ed1e08d271a138e92af84640711bae64044f (diff) | |
parent | 0301e4d7bcf7c8f318a67588f30c60013519e748 (diff) | |
download | podman-231c528a4db9d312bd43b2ce15017e734349a12f.tar.gz podman-231c528a4db9d312bd43b2ce15017e734349a12f.tar.bz2 podman-231c528a4db9d312bd43b2ce15017e734349a12f.zip |
Merge pull request #8822 from baude/issue8733
re-open container log files
Diffstat (limited to 'libpod/logs/log.go')
-rw-r--r-- | libpod/logs/log.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/logs/log.go b/libpod/logs/log.go index d463c0aa4..2637c8524 100644 --- a/libpod/logs/log.go +++ b/libpod/logs/log.go @@ -73,7 +73,7 @@ func GetLogFile(path string, options *LogOptions) (*tail.Tail, []*LogLine, error Whence: whence, } - t, err := tail.TailFile(path, tail.Config{MustExist: true, Poll: true, Follow: options.Follow, Location: &seek, Logger: tail.DiscardingLogger}) + t, err := tail.TailFile(path, tail.Config{MustExist: true, Poll: true, Follow: options.Follow, Location: &seek, Logger: tail.DiscardingLogger, ReOpen: options.Follow}) return t, logTail, err } |