mirror of
https://git.bits.team/Bits/mod-manager.git
synced 2024-11-22 05:58:21 -05:00
Fix sonic boom is not ready yet error
This commit is contained in:
parent
9c3824e81d
commit
fd86d1596f
@ -52,7 +52,17 @@ export default class ModManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static createLogger(): Logger {
|
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 => {
|
process.on("uncaughtException", error => {
|
||||||
PrintUtils.error(error.message, error);
|
PrintUtils.error(error.message, error);
|
||||||
setTimeout(() => process.exit(1), 1)
|
setTimeout(() => process.exit(1), 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user