Merge branch 'feat/dev_251201' of https://10.100.0.10:3210/dabeeo/kamco-dabeeo-backoffice into feat/dev_251201
This commit is contained in:
@@ -484,7 +484,7 @@ public class GlobalExceptionHandler {
|
|||||||
public ApiResponseDto<String> handleCustomApiException(
|
public ApiResponseDto<String> handleCustomApiException(
|
||||||
CustomApiException e, HttpServletRequest request) {
|
CustomApiException e, HttpServletRequest request) {
|
||||||
log.warn("[CustomApiException] resource : {}", e.getMessage());
|
log.warn("[CustomApiException] resource : {}", e.getMessage());
|
||||||
|
this.errorLog(request, e);
|
||||||
String codeName = e.getCodeName();
|
String codeName = e.getCodeName();
|
||||||
HttpStatus status = e.getStatus();
|
HttpStatus status = e.getStatus();
|
||||||
// String message = e.getMessage() == null ? ApiResponseCode.getMessage(codeName) :
|
// String message = e.getMessage() == null ? ApiResponseCode.getMessage(codeName) :
|
||||||
@@ -521,6 +521,7 @@ public class GlobalExceptionHandler {
|
|||||||
public ApiResponseDto<String> handleMaxUploadSizeExceeded(
|
public ApiResponseDto<String> handleMaxUploadSizeExceeded(
|
||||||
MaxUploadSizeExceededException e, HttpServletRequest request) {
|
MaxUploadSizeExceededException e, HttpServletRequest request) {
|
||||||
log.warn("[MaxUploadSizeExceededException] resource :{} ", e.getMessage());
|
log.warn("[MaxUploadSizeExceededException] resource :{} ", e.getMessage());
|
||||||
|
this.errorLog(request, e);
|
||||||
ApiResponseCode code = ApiResponseCode.PAYLOAD_TOO_LARGE;
|
ApiResponseCode code = ApiResponseCode.PAYLOAD_TOO_LARGE;
|
||||||
ErrorLogEntity errorLog =
|
ErrorLogEntity errorLog =
|
||||||
saveErrorLogData(
|
saveErrorLogData(
|
||||||
|
|||||||
Reference in New Issue
Block a user