Skip to content

Commit

Permalink
chore/#51: 서버 내부 오류 발생 로깅 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pushedrumex committed Feb 26, 2024
1 parent ca2db14 commit 3f97052
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ResponseEntity<ErrorResponse> handleBusinessException(BusinessException e
public ResponseEntity<ErrorResponse> handleException(Exception exception) {
String exName = exception.getClass().getSimpleName();
String exMessage = exception.getMessage();
log.warn("[Exception] exName=[{}] exMessage=[{}]", exName, exMessage);
log.error("[Exception] exName=[{}] exMessage=[{}]", exName, exMessage);

return ResponseEntity.status(INTERNAL_SERVER_ERROR).body(new ErrorResponse("알 수 없는 오류가 발생했습니다. 잠시 후 다시 시도해주세요."));
}
Expand Down

0 comments on commit 3f97052

Please sign in to comment.