diff --git a/src/main.ts b/src/main.ts index 5819286..e66bda0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -91,6 +91,10 @@ async function enablePlugins(app: NestFastifyApplication): Promise { }); } +process.on("uncaughtException", (e, origin) => { + logger.error(`${origin}: ${e.message}`, {}, e); +}); + function initializeSwagger(app: NestFastifyApplication): void { if (!bool(config.swagger.enabled)) { return;