offers wip

This commit is contained in:
ntr committed 2022-08-23 00:02:50 +10:00
1 parent 453c2da045
commit deb9eb3fc2
16 files changed
+276 -88

No files matched your search

+10
View File
@@ -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);