Skip to content

Commit

Permalink
Fixed: Reopen recreated files and poll
Browse files Browse the repository at this point in the history
  • Loading branch information
danielunderwood committed Mar 1, 2022
1 parent 3ec2499 commit 13a5486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func main() {
sourceName, _ = os.Hostname()
}

t, err := tail.TailFile(file, tail.Config{Follow: true})
t, err := tail.TailFile(file, tail.Config{Follow: true, ReOpen: true, Poll: true})
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 13a5486

Please sign in to comment.