mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
ensured dumpFollow of logread includes 'follow' behaviour
Signed-off-by: Daniel Smith <daniel@razorsecure.com>
This commit is contained in:
parent
be7dfdd42c
commit
cda7577e3c
@ -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