[core] Log signals
This commit is contained in:
1 parent
2055c595bb
commit
9d857d015f
1 file changed
+7
@@ -29,6 +29,13 @@ process.on('unhandledRejection', (reason, promise) => {
|
||||
// @ts-ignore
|
||||
logger.error(reason.stack);
|
||||
});
|
||||
process.on('SIGINT', () => {
|
||||
logger.info('SIGINT received');
|
||||
});
|
||||
|
||||
process.on('SIGTERM', () => {
|
||||
logger.info('SIGTERM received');
|
||||
});
|
||||
|
||||
async function loadModules(): Promise<
|
||||
[typeof AppModuleCore, typeof SwaggerConfiguratorCore]
|
||||
|
||||
Reference in new issue
Block a user