mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-04 03:49:23 +02:00
switch from notify to poll
This commit is contained in:
parent
0a2a0fdee5
commit
a7b133b90a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user