Merge pull request #4049 from danrzs/master

ensured dumpFollow of logread includes 'follow' behaviour
This commit is contained in:
Avi Deitcher 2024-07-03 19:57:34 +03:00 committed by GitHub
commit 3f80ca694f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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