diff --git a/src/main/java/com/gdschongik/gdsc/global/exception/GlobalExceptionHandler.java b/src/main/java/com/gdschongik/gdsc/global/exception/GlobalExceptionHandler.java index b6ba65e68..9f38a040a 100644 --- a/src/main/java/com/gdschongik/gdsc/global/exception/GlobalExceptionHandler.java +++ b/src/main/java/com/gdschongik/gdsc/global/exception/GlobalExceptionHandler.java @@ -17,19 +17,19 @@ public class GlobalExceptionHandler extends ResponseEntityExceptionHandler { @ExceptionHandler(CustomException.class) public ResponseEntity handleCustomException(CustomException e) { - log.error("CustomException : {}", e.getMessage(), e); + log.info("CustomException : {}", e.getMessage()); return ResponseEntity.status(e.getErrorCode().getStatus()).body(ErrorResponse.of(e.getErrorCode())); } @ExceptionHandler(CustomPaymentException.class) public ResponseEntity handleCustomPaymentException(CustomPaymentException e) { - log.error("CustomPaymentException : {}, {}", e.getCode(), e.getMessage()); + log.info("CustomPaymentException : {}, {}", e.getCode(), e.getMessage()); return ResponseEntity.status(e.getStatus()).body(ErrorResponse.of(e.getCode(), e.getMessage())); } @ExceptionHandler(Exception.class) public ResponseEntity handleException(Exception e) { - log.error("INTERNAL_SERVER_ERROR : {}", e.getMessage(), e); + log.error("INTERNAL_SERVER_ERROR : {}", e.getMessage()); return ResponseEntity.status(ErrorCode.INTERNAL_SERVER_ERROR.getStatus()) .body(ErrorResponse.of(ErrorCode.INTERNAL_SERVER_ERROR)); } @@ -37,7 +37,7 @@ public ResponseEntity handleException(Exception e) { @Override protected ResponseEntity handleMethodArgumentNotValid( MethodArgumentNotValidException e, HttpHeaders headers, HttpStatusCode status, WebRequest request) { - log.error("METHOD_ARGUMENT_NOT_VALID : {}", e.getMessage(), e); + log.info("METHOD_ARGUMENT_NOT_VALID : {}", e.getMessage()); String errorMessage = e.getBindingResult().getAllErrors().get(0).getDefaultMessage(); return ResponseEntity.status(status.value()) .body(ErrorResponse.of(ErrorCode.METHOD_ARGUMENT_NOT_VALID, errorMessage));