redis pub/sub fix
This commit is contained in:
11
init.js
Normal file
11
init.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export function initLog(app) {
|
||||
process.on('uncaughtException', (err) => {
|
||||
console.error('Uncaught Exception:', err);
|
||||
process.exit(1); // Exit with code 1
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', (reason, promise) => {
|
||||
console.error('Unhandled Rejection at:', promise, 'reason:', reason);
|
||||
process.exit(1); // Exit with code 1
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user