Consistent logging of resolved exceptions

Issue: SPR-17178
This commit is contained in:
Rossen Stoyanchev
2018-08-15 10:57:51 +03:00
parent 6027cf2255
commit 04141dee65
3 changed files with 6 additions and 18 deletions

View File

@@ -72,8 +72,8 @@ public class ResponseStatusExceptionHandler implements WebExceptionHandler {
if (this.warnLogger != null && this.warnLogger.isWarnEnabled()) {
this.warnLogger.warn(logPrefix + formatError(ex, exchange.getRequest()), ex);
}
else if (logger.isDebugEnabled()) {
logger.debug(logPrefix + formatError(ex, exchange.getRequest()));
else if (logger.isWarnEnabled()) {
logger.warn(logPrefix + formatError(ex, exchange.getRequest()));
}
return exchange.getResponse().setComplete();