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(); } }