summaryrefslogtreecommitdiff
path: root/libpod/logs/log.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-24 02:40:04 +0100
committerGitHub <noreply@github.com>2020-12-24 02:40:04 +0100
commit231c528a4db9d312bd43b2ce15017e734349a12f (patch)
tree79947af2dcac81c23abe11369c2d4e09a80f60e0 /libpod/logs/log.go
parent9ac5ed1e08d271a138e92af84640711bae64044f (diff)
parent0301e4d7bcf7c8f318a67588f30c60013519e748 (diff)
downloadpodman-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.go2
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
}