Skip to content

Commit 7e80d2d

Browse files
committed
Exceptions thrown from @ExceptionHandler methods logged at warn level (instead of debug)
Issue: SPR-14861 (cherry picked from commit 7627c38)
1 parent 144f687 commit 7e80d2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ protected ModelAndView doResolveHandlerMethodException(HttpServletRequest reques
381381
exceptionHandlerMethod.invokeAndHandle(webRequest, mavContainer, exception, handlerMethod);
382382
}
383383
}
384-
catch (Exception invocationEx) {
385-
if (logger.isDebugEnabled()) {
386-
logger.debug("Failed to invoke @ExceptionHandler method: " + exceptionHandlerMethod, invocationEx);
384+
catch (Throwable invocationEx) {
385+
if (logger.isWarnEnabled()) {
386+
logger.warn("Failed to invoke @ExceptionHandler method: " + exceptionHandlerMethod, invocationEx);
387387
}
388388
return null;
389389
}

0 commit comments

Comments
 (0)