From c4ca75029f6ef5ecd09474c7d2a1a92c91bea36a Mon Sep 17 00:00:00 2001 From: alexeh Date: Mon, 14 Oct 2024 07:06:11 +0200 Subject: [PATCH] log exception filter for tests --- api/src/filters/all-exceptions.exception.filter.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/filters/all-exceptions.exception.filter.ts b/api/src/filters/all-exceptions.exception.filter.ts index 85f266e0..71574609 100644 --- a/api/src/filters/all-exceptions.exception.filter.ts +++ b/api/src/filters/all-exceptions.exception.filter.ts @@ -64,9 +64,13 @@ export class AllExceptionsFilter implements ExceptionFilter { }); } if (this.apiConfig.get('NODE_ENV') !== 'test') { + this.logger.error('ENVIRONMENT IN CI'); + this.logger.error(this.apiConfig.get('NODE_ENV')); if (status >= 500) { + this.logger.error('TRIGGERING ERROR'); this.logger.error(errors); } else { + this.logger.error('TRIGGERING WARN'); this.logger.warn(errors); } }