offers wip
This commit is contained in:
1 parent
453c2da045
commit
deb9eb3fc2
16 files changed
+276
-88
No files matched your search
@@ -5,6 +5,16 @@ import { Events } from './src/events';
|
||||
async function start() {
|
||||
const log = createLog();
|
||||
|
||||
process.on('uncaughtException', (err, origin) => {
|
||||
log.error({ err, origin }, 'uncaughtException');
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', (reason, promise) => {
|
||||
log.error({ reason, promise }, 'unhandledRejection');
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
process.on('SIGTERM', () => {
|
||||
log.debug('SIGTERM received, exiting');
|
||||
process.exit(0);
|
||||
|
||||
Reference in new issue
Block a user