switch from notify to poll

This commit is contained in:
Jan Naahs 2020-08-18 16:40:25 +02:00
parent 0a2a0fdee5
commit a7b133b90a

View File

@ -20,7 +20,7 @@ func IsClosed(ch <-chan Message) bool {
func logSubscribe(client *Client, data interface{}) {
go func() {
logfile := filepath.Join(config.FactorioDir, "factorio-server-console.log")
t, err := tail.TailFile(logfile, tail.Config{Follow: true})
t, err := tail.TailFile(logfile, tail.Config{Follow: true, Poll: true})
if err != nil {
log.Printf("Error subscribing to tail log %s", err)
return