@@ -52,7 +52,7 @@ protected ApiResponseDto handleConstraintViolationException(final ConstraintViol
5252 return ApiResponseDto .error (ErrorStatus .VALIDATION_REQUEST_HEADER_MISSING_EXCEPTION , String .format ("%s. (%s)" , ErrorStatus .VALIDATION_REQUEST_HEADER_MISSING_EXCEPTION .getMessage (), e .getConstraintViolations ()));
5353 }
5454
55- @ ResponseStatus (HttpStatus .BAD_REQUEST )
55+ @ ResponseStatus (HttpStatus .BAD_REEUEST )
5656 @ ExceptionHandler (IllegalArgumentException .class )
5757 protected ApiResponseDto handleConstraintViolationException (final IllegalArgumentException e ) {
5858 return ApiResponseDto .error (ErrorStatus .VALIDATION_REQUEST_HEADER_MISSING_EXCEPTION , String .format ("%s. (%s)" , ErrorStatus .INVALID_PARAMETER_EXCEPTION .getMessage (), e .getMessage ()));
@@ -61,7 +61,7 @@ protected ApiResponseDto handleConstraintViolationException(final IllegalArgumen
6161 @ ResponseStatus (HttpStatus .BAD_REQUEST )
6262 @ ExceptionHandler (MissingServletRequestParameterException .class )
6363 protected ApiResponseDto handleMissingRequestParameterException (final MissingServletRequestParameterException e ) {
64- return ApiResponseDto .error (ErrorStatus .VALIDATION_REQUEST_PARAMETER_MISSING_EXCEPTION , String .format ("%s. (%s)" , ErrorStatus .VALIDATION_REQUEST_PARAMETER_MISSING_EXCEPTION .getMessage (), e .getParameterName ()));
64+ returnApiResponseDto .error (ErrorStatus .VALIDATION_REQUEST_PARAMETER_MISSING_EXCEPTION , String .format ("%s. (%s)" , ErrorStatus .VALIDATION_REQUEST_PARAMETER_MISSING_EXCEPTION .getMessage (), e .getParameterName ()));
6565 }
6666
6767
@@ -73,15 +73,16 @@ protected ApiResponseDto handleMissingRequestParameterException(final MissingSer
7373 @ ResponseStatus (HttpStatus .INTERNAL_SERVER_ERROR )
7474 @ ExceptionHandler (Exception .class )
7575 protected ApiResponseDto <Object > handleException (final Exception error , final HttpServletRequest request ) {
76+ log .error ("[500 ERROR] {} {}" , request .getMethod (), request .getRequestURI (), error );
7677 try {
7778 slackApi .sendAlert (error , request );
7879 } catch (Exception e ) {
79- log .error ("Slack ์๋ฆผ ์ ์ก ์คํจ" , e );
80+ log .error ("Slack ์๋ฆผ ์ ์ ์คํจ" , e );
8081 }
8182 try {
8283 Sentry .captureException (error );
8384 } catch (Exception e ) {
84- log .error ("Sentry ์ ์ก ์คํจ" , e );
85+ log .error ("Sentry ์ ์ ์คํจ" , e );
8586 }
8687 return ApiResponseDto .error (ErrorStatus .INTERNAL_SERVER_ERROR );
8788 }
0 commit comments