Fix sonic boom is not ready yet error

This commit is contained in:
Kallum Jones 2022-08-04 16:38:25 +01:00
parent 9c3824e81d
commit fd86d1596f
No known key found for this signature in database
GPG Key ID: D7F4589C4D7F81A9

View File

@ -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)