Skip to content

Commit

Permalink
remove unused log
Browse files Browse the repository at this point in the history
  • Loading branch information
a-lor-cab committed Apr 24, 2024
1 parent 238b4fc commit 567f4c4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/middleware/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 567f4c4

Please sign in to comment.