mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-18 08:51:08 +00:00
Merge pull request #4049 from danrzs/master
ensured dumpFollow of logread includes 'follow' behaviour
This commit is contained in:
commit
3f80ca694f
@ -41,6 +41,11 @@ func main() {
|
||||
flag.BoolVar(&follow, "f", false, "follow log buffer")
|
||||
flag.Parse()
|
||||
|
||||
if dumpFollow {
|
||||
// StreamLogs() has seperate 'dump' and 'follow' flags, since 'dumpFollow' includes 'follow' we set that too
|
||||
follow = true
|
||||
}
|
||||
|
||||
c, err := StreamLogs(socketPath, follow, dumpFollow)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Loading…
Reference in New Issue
Block a user