fix: Add uncaught exceptions log
This commit is contained in:
@@ -1,2 +1,11 @@
|
||||
import './config/orm';
|
||||
import './workers/processor';
|
||||
|
||||
process
|
||||
.on('unhandledRejection', (reason, p) => {
|
||||
console.error(reason, 'Unhandled Rejection at Promise', p);
|
||||
})
|
||||
.on('uncaughtException', (err) => {
|
||||
console.error(err, 'Uncaught Exception thrown');
|
||||
process.exit(1);
|
||||
});
|
||||
|
Reference in New Issue
Block a user