mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
Update log statement to fatal
This commit is contained in:
1 file changed
+1
-1
@@ -72,8 +72,8 @@ export function createShutdownGuard(logger: Logger, signalName: string, callback
|
|||||||
logger.info(`Caught ${signalName}, shutting down`);
|
logger.info(`Caught ${signalName}, shutting down`);
|
||||||
callback().catch(err => {
|
callback().catch(err => {
|
||||||
setBlocking(true);
|
setBlocking(true);
|
||||||
logger.error(err.stack);
|
|
||||||
logger.fatal("Error during shutdown, terminating immediately");
|
logger.fatal("Error during shutdown, terminating immediately");
|
||||||
|
logger.fatal(err.stack);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user