Skip to content

Commit

Permalink
Merge pull request #52 from PBTP/fix/exception-filter
Browse files Browse the repository at this point in the history
fix: ExceptionFilter NotFoundException log 해제 ( 불특정 다수 접근 )
  • Loading branch information
emibgo2 authored Dec 6, 2024
2 parents 8b51998 + 6878503 commit e5462dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/filters/exception.filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export class NotFoundExceptionFilter implements ExceptionFilter {
const status = HttpStatus.NOT_FOUND;
const responseEntity = ResponseEntity.NOT_FOUND('찾을 수 없습니다.');

this.logger.warn(
`Http Status: ${status}, path: ${request.url}, message: ${exception.message}`,
exception.stack,
);
// this.logger.warn(
// `Http Status: ${status}, path: ${request.url}, message: ${exception.message}`,
// exception.stack,
// );

response.status(status).json(responseEntity);
}
Expand Down

0 comments on commit e5462dd

Please sign in to comment.