[core] Log signals

This commit is contained in:
devlikepro committed 2024-10-08 17:46:03 +07:00
1 parent 2055c595bb
commit 9d857d015f
1 file changed
+7
+7
View File
@@ -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]