mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 11:23:09 +02:00
[Server] Improve: Display detail of unhandled promise rejection
This commit is contained in:
parent
9de3e59e20
commit
2297c06fce
1 changed files with 3 additions and 0 deletions
|
@ -182,6 +182,9 @@ function spawnWorkers(onComplete: any): void {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display detail of unhandled promise rejection
|
||||||
|
process.on('unhandledRejection', console.dir);
|
||||||
|
|
||||||
// Dying away...
|
// Dying away...
|
||||||
process.on('exit', () => {
|
process.on('exit', () => {
|
||||||
Logger.info('The process is going exit');
|
Logger.info('The process is going exit');
|
||||||
|
|
Loading…
Reference in a new issue