summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--src/MinecraftHandler.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MinecraftHandler.ts b/src/MinecraftHandler.ts
index 96b525a..1b741f0 100644
--- a/src/MinecraftHandler.ts
+++ b/src/MinecraftHandler.ts
@@ -180,7 +180,8 @@ class MinecraftHandler {
   private initTail (callback: Callback) {
     if (fs.existsSync(this.config.LOCAL_FILE_PATH)) {
       console.log(`[INFO] Using configuration for local log file at "${this.config.LOCAL_FILE_PATH}"`)
-      this.tail = new Tail(this.config.LOCAL_FILE_PATH)
+	    var options= {useWatchFile: true}
+      this.tail = new Tail(this.config.LOCAL_FILE_PATH, options)
     } else {
       throw new Error(`[ERROR] Local log file not found at "${this.config.LOCAL_FILE_PATH}"`)
     }