mirror of
https://github.com/remnawave/node.git
synced 2026-08-31 07:17:36 +00:00
refactor: clean up logging in HttpExceptionFilter
- Commented out detailed error logging to streamline response handling in the exception filter.
This commit is contained in:
parent
9b800cb605
commit
d11637729c
1 changed files with 6 additions and 6 deletions
|
|
@ -30,12 +30,12 @@ export class HttpExceptionFilter implements ExceptionFilter {
|
|||
this.logger.error(exception.getResponse());
|
||||
response.status(status).json(exception.getResponse());
|
||||
} else {
|
||||
this.logger.error({
|
||||
timestamp: new Date().toISOString(),
|
||||
code: errorCode,
|
||||
path: request.url,
|
||||
message: errorMessage,
|
||||
});
|
||||
// this.logger.error({
|
||||
// timestamp: new Date().toISOString(),
|
||||
// code: errorCode,
|
||||
// path: request.url,
|
||||
// message: errorMessage,
|
||||
// });
|
||||
response.status(status).json({
|
||||
timestamp: new Date().toISOString(),
|
||||
path: request.url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue