From 567f4c4ed85c7aa152b2abaee7d437ff26974209 Mon Sep 17 00:00:00 2001 From: Antonio Lorusso Date: Wed, 24 Apr 2024 15:06:17 +0100 Subject: [PATCH] remove unused log --- src/middleware/logger.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/middleware/logger.ts b/src/middleware/logger.ts index ec17783..b35c2e7 100644 --- a/src/middleware/logger.ts +++ b/src/middleware/logger.ts @@ -35,18 +35,6 @@ export class LoggerMiddleware implements NestMiddleware { }); }); - response.on('error', (error) => { - const { statusCode } = response; - this.logger.error({ - message: 'Response error', - method, - originalUrl, - statusCode, - userAgent, - ip, - error: error.message, - }); - }); next(); } }