From e34d07a2069bda546f519c7aaf7aa8fe634d20c2 Mon Sep 17 00:00:00 2001 From: Feiko Joosten Date: Fri, 17 Jul 2020 22:06:44 +0200 Subject: Changed tail to make use of watch file. Fixed an issue where the log file required a manual refresh before the new lines were detected. --- src/MinecraftHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/MinecraftHandler.ts') 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}"`) } -- cgit 1.4.1 From 3f986842f7e00b05628b68886c037446894becc6 Mon Sep 17 00:00:00 2001 From: Feiko Joosten Date: Wed, 22 Jul 2020 09:14:14 +0200 Subject: Fixed coding style Fixed the coding style based on @destruc7i0n's feedback. --- src/MinecraftHandler.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/MinecraftHandler.ts') diff --git a/src/MinecraftHandler.ts b/src/MinecraftHandler.ts index 1b741f0..7a81718 100644 --- a/src/MinecraftHandler.ts +++ b/src/MinecraftHandler.ts @@ -180,8 +180,7 @@ 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}"`) - var options= {useWatchFile: true} - this.tail = new Tail(this.config.LOCAL_FILE_PATH, options) + this.tail = new Tail(this.config.LOCAL_FILE_PATH, {useWatchFile: true}) } else { throw new Error(`[ERROR] Local log file not found at "${this.config.LOCAL_FILE_PATH}"`) } -- cgit 1.4.1 log/?h=2.1&id=7a8024ae3dbe0c2c52b6536fb73dd33071e00637&follow=1'>root/handle.c (unfollow)
Commit message (Expand)Author
2020-02-10Move scroll marker on resizeJune McEnroe
2020-02-10Update line count for words longer than linesJune McEnroe
2020-02-10Simplify mark, heat, unread trackingJune McEnroe
2020-02-10Update prompt when own nick changesJune McEnroe
2020-02-10Match URLs surrounded by parenthesesJune McEnroe
2020-02-10Fix M-a so it properly cycles back to where it startedJune McEnroe
2020-02-09Add M-lJune McEnroe
2020-02-09Add /whoisJune McEnroe
2020-02-09Add /msgJune McEnroe