Skip to content

Commit a7b133b

Browse files
author
Jan Naahs
committed
switch from notify to poll
1 parent 0a2a0fd commit a7b133b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wsroutes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func IsClosed(ch <-chan Message) bool {
2020
func logSubscribe(client *Client, data interface{}) {
2121
go func() {
2222
logfile := filepath.Join(config.FactorioDir, "factorio-server-console.log")
23-
t, err := tail.TailFile(logfile, tail.Config{Follow: true})
23+
t, err := tail.TailFile(logfile, tail.Config{Follow: true, Poll: true})
2424
if err != nil {
2525
log.Printf("Error subscribing to tail log %s", err)
2626
return

0 commit comments

Comments
 (0)