Skip to content
Snippets Groups Projects
Commit 2297c06f authored by syuilo's avatar syuilo
Browse files

[Server] Improve: Display detail of unhandled promise rejection

parent 9de3e59e
No related merge requests found
......@@ -182,6 +182,9 @@ function spawnWorkers(onComplete: any): void {
});
}
// Display detail of unhandled promise rejection
process.on('unhandledRejection', console.dir);
// Dying away...
process.on('exit', () => {
Logger.info('The process is going exit');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment