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()); }