From 9536e5eaf72bccbbf04eeac83cfc260b0be73219 Mon Sep 17 00:00:00 2001 From: YONGWOOK CHOI <60510921+CYY1007@users.noreply.github.com> Date: Tue, 31 Oct 2023 21:50:17 +0900 Subject: [PATCH] =?UTF-8?q?Ci/252=20=EB=B2=84=EA=B7=B8=20=EB=A1=9C?= =?UTF-8?q?=EA=B9=85=20(#265)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :construction_worker: Ci : 릴리즈 인프라 구축 * relase db create * release db 수정 (#258) * :construction_worker: Ci : 릴리즈 인프라 구축 (#255) * Ci/252 relase db 수정 (#257) * :construction_worker: Ci : 릴리즈 인프라 구축 * relase db create * :construction_worker: Ci : relase application.yml 수정 * 🐛 redis 연결정보 수정 (#260) * :construction_worker: Ci : 릴리즈 인프라 구축 (#255) * Ci/252 relase db 수정 (#257) * :construction_worker: Ci : 릴리즈 인프라 구축 * relase db create * relase redis 수정 (#259) * :construction_worker: Ci : 릴리즈 인프라 구축 * relase db create * release db 수정 (#258) * :construction_worker: Ci : 릴리즈 인프라 구축 (#255) * Ci/252 relase db 수정 (#257) * :construction_worker: Ci : 릴리즈 인프라 구축 * relase db create * :construction_worker: Ci : relase application.yml 수정 * release db 설정 수정 * 로깅 추가 * 로깅 추가 --- .../zipdabang/server/apiPayload/exception/ExceptionAdvice.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/zipdabang/server/apiPayload/exception/ExceptionAdvice.java b/src/main/java/zipdabang/server/apiPayload/exception/ExceptionAdvice.java index 7feecf8..24de79d 100644 --- a/src/main/java/zipdabang/server/apiPayload/exception/ExceptionAdvice.java +++ b/src/main/java/zipdabang/server/apiPayload/exception/ExceptionAdvice.java @@ -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); } @@ -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()); }