feat: log unhandled errors and pretty dev output (WealthLedger/backend#120) (#126)
feat: log unhandled errors and pretty dev output (#120)
This commit was merged in pull request #126.
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ export function configureApp(app: INestApplication): void {
|
||||
exceptionFactory: (message) => new BadRequestException({ message }),
|
||||
}),
|
||||
);
|
||||
app.useGlobalFilters(new HttpExceptionFilter());
|
||||
app.useGlobalFilters(new HttpExceptionFilter(app.get(StructuredLogger)));
|
||||
app.enableShutdownHooks();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user