mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-18 17:01:07 +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.BoolVar(&follow, "f", false, "follow log buffer")
|
||||||
flag.Parse()
|
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)
|
c, err := StreamLogs(socketPath, follow, dumpFollow)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user