From fd86d1596fd0fb3a830c094a27aba39a773597bf Mon Sep 17 00:00:00 2001 From: Kallum Jones Date: Thu, 4 Aug 2022 16:38:25 +0100 Subject: [PATCH] Fix sonic boom is not ready yet error --- src/mod-manager.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/mod-manager.ts b/src/mod-manager.ts index cc3d2a0..37be350 100644 --- a/src/mod-manager.ts +++ b/src/mod-manager.ts @@ -52,7 +52,17 @@ export default class ModManager { } static createLogger(): Logger { - let logger = pino({base: {pid: undefined, hostname: undefined}}, pino.destination({dest: this.LOG_FILE})); + let logger = pino({ + base: { + pid: undefined, + hostname: undefined} + }, + pino.destination({ + dest: this.LOG_FILE, + sync: true + }) + ); + process.on("uncaughtException", error => { PrintUtils.error(error.message, error); setTimeout(() => process.exit(1), 1)