mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
[Server] Improve: Display detail of unhandled promise rejection
This commit is contained in:
parent
1ca5bf26bc
commit
1ee518bd37
@ -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 New Issue
Block a user