[Server] Improve: Display detail of unhandled promise rejection

This commit is contained in:
syuilo 2017-01-19 08:04:17 +09:00
parent 1ca5bf26bc
commit 1ee518bd37

View File

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