Skip to content

Commit

Permalink
Ci/252 버그 로깅 (#265)
Browse files Browse the repository at this point in the history
* 👷 Ci : 릴리즈 인프라 구축

* relase db create

* release db 수정 (#258)

* 👷 Ci : 릴리즈 인프라 구축 (#255)

* Ci/252 relase db 수정 (#257)

* 👷 Ci : 릴리즈 인프라 구축

* relase db create

* 👷 Ci : relase application.yml 수정

* 🐛 redis 연결정보 수정 (#260)

* 👷 Ci : 릴리즈 인프라 구축 (#255)

* Ci/252 relase db 수정 (#257)

* 👷 Ci : 릴리즈 인프라 구축

* relase db create

* relase redis 수정 (#259)

* 👷 Ci : 릴리즈 인프라 구축

* relase db create

* release db 수정 (#258)

* 👷 Ci : 릴리즈 인프라 구축 (#255)

* Ci/252 relase db 수정 (#257)

* 👷 Ci : 릴리즈 인프라 구축

* relase db create

* 👷 Ci : relase application.yml 수정

* release db 설정 수정

* 로깅 추가

* 로깅 추가
  • Loading branch information
CYY1007 authored Oct 31, 2023
1 parent df5526e commit 9536e5e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public ResponseEntity onThrowException(GeneralException generalException,
@AuthenticationPrincipal User user, HttpServletRequest request) {
getExceptionStackTrace(generalException, user, request);
Reason errorReasonHttpStatus = generalException.getErrorReasonHttpStatus();
System.out.println(generalException.getMessage());
System.out.println(generalException.getCode());
return handleExceptionInternal(generalException,errorReasonHttpStatus,null,request);
}

Expand Down Expand Up @@ -157,6 +159,7 @@ private void getExceptionStackTrace(Exception e, @AuthenticationPrincipal User u
pw.append("uid: " + user.getUsername() + "\n");
}
pw.append(e.getMessage());
System.out.println(e.getMessage());
pw.append("\n=====================================================================");
log.error(sw.toString());
}
Expand Down

0 comments on commit 9536e5e

Please sign in to comment.