Skip to content

Commit cdfcc23

Browse files
committed
Reduce log level for @ExceptionHandler failure
Issue: SPR-13932
1 parent 29cd180 commit cdfcc23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ protected ModelAndView doResolveHandlerMethodException(HttpServletRequest reques
367367
exceptionHandlerMethod.invokeAndHandle(webRequest, mavContainer, exception, handlerMethod);
368368
}
369369
catch (Exception invocationEx) {
370-
if (logger.isErrorEnabled()) {
371-
logger.error("Failed to invoke @ExceptionHandler method: " + exceptionHandlerMethod, invocationEx);
370+
if (logger.isDebugEnabled()) {
371+
logger.debug("Failed to invoke @ExceptionHandler method: " + exceptionHandlerMethod, invocationEx);
372372
}
373373
return null;
374374
}

0 commit comments

Comments
 (0)