Reduce log level for @ExceptionHandler failure

Issue: SPR-13932
This commit is contained in:
Rossen Stoyanchev 2016-02-09 12:57:02 -05:00
parent 29cd1808b7
commit cdfcc23b6f
1 changed files with 2 additions and 2 deletions

View File

@ -367,8 +367,8 @@ public class ExceptionHandlerExceptionResolver extends AbstractHandlerMethodExce
exceptionHandlerMethod.invokeAndHandle(webRequest, mavContainer, exception, handlerMethod); exceptionHandlerMethod.invokeAndHandle(webRequest, mavContainer, exception, handlerMethod);
} }
catch (Exception invocationEx) { catch (Exception invocationEx) {
if (logger.isErrorEnabled()) { if (logger.isDebugEnabled()) {
logger.error("Failed to invoke @ExceptionHandler method: " + exceptionHandlerMethod, invocationEx); logger.debug("Failed to invoke @ExceptionHandler method: " + exceptionHandlerMethod, invocationEx);
} }
return null; return null;
} }