ensured dumpFollow of logread includes 'follow' behaviour

Signed-off-by: Daniel Smith <daniel@razorsecure.com>
This commit is contained in:
Daniel Smith 2024-07-03 13:53:50 +01:00
parent be7dfdd42c
commit cda7577e3c
No known key found for this signature in database

View File

@ -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)