Merge branch '5.3.x' into main
This commit is contained in:
commit
837dd30661
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -70,7 +70,7 @@ public class ResponseStatusExceptionHandler implements WebExceptionHandler {
|
|||
// Mirrors AbstractHandlerExceptionResolver in spring-webmvc...
|
||||
String logPrefix = exchange.getLogPrefix();
|
||||
if (this.warnLogger != null && this.warnLogger.isWarnEnabled()) {
|
||||
this.warnLogger.warn(logPrefix + formatError(ex, exchange.getRequest()), ex);
|
||||
this.warnLogger.warn(logPrefix + formatError(ex, exchange.getRequest()));
|
||||
}
|
||||
else if (logger.isDebugEnabled()) {
|
||||
logger.debug(logPrefix + formatError(ex, exchange.getRequest()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue