글로벌 exception error.log 추가

This commit is contained in:
2025-12-23 09:43:00 +09:00
parent 95c01c693b
commit 363132d53a

View File

@@ -484,7 +484,7 @@ public class GlobalExceptionHandler {
public ApiResponseDto<String> handleCustomApiException(
CustomApiException e, HttpServletRequest request) {
log.warn("[CustomApiException] resource : {}", e.getMessage());
this.errorLog(request, e);
String codeName = e.getCodeName();
HttpStatus status = e.getStatus();
// String message = e.getMessage() == null ? ApiResponseCode.getMessage(codeName) :
@@ -521,6 +521,7 @@ public class GlobalExceptionHandler {
public ApiResponseDto<String> handleMaxUploadSizeExceeded(
MaxUploadSizeExceededException e, HttpServletRequest request) {
log.warn("[MaxUploadSizeExceededException] resource :{} ", e.getMessage());
this.errorLog(request, e);
ApiResponseCode code = ApiResponseCode.PAYLOAD_TOO_LARGE;
ErrorLogEntity errorLog =
saveErrorLogData(