Polishing

This commit is contained in:
Juergen Hoeller
2018-08-16 12:21:49 +02:00
parent 6b3dd0779f
commit f532de5a8a
10 changed files with 87 additions and 85 deletions

View File

@@ -135,13 +135,11 @@ public abstract class AbstractHandlerExceptionResolver implements HandlerExcepti
prepareResponse(ex, response);
ModelAndView result = doResolveException(request, response, handler, ex);
if (result != null) {
// Print warn message, when warn logger is not enabled..
// Print warn message when warn logger is not enabled...
if (logger.isWarnEnabled() && (this.warnLogger == null || !this.warnLogger.isWarnEnabled())) {
logger.warn("Resolved [" + ex + "]" + (result.isEmpty() ? "" : " to " + result));
}
// warnLogger with full stack trace (requires explicit config)..
// warnLogger with full stack trace (requires explicit config)
logException(ex, request);
}
return result;
@@ -204,7 +202,7 @@ public abstract class AbstractHandlerExceptionResolver implements HandlerExcepti
* @return the log message to use
*/
protected String buildLogMessage(Exception ex, HttpServletRequest request) {
return "Resolved exception caused by Handler execution: " + ex;
return "Resolved exception caused by handler execution: " + ex;
}
/**