Add missing isDebugEnabled guard in FrameworkServlet
Issue: SPR-8085
This commit is contained in:
parent
234bca6462
commit
9b45d50b9b
|
|
@ -874,12 +874,14 @@ public abstract class FrameworkServlet extends HttpServletBean {
|
||||||
logger.trace("Cleared thread-bound request context: " + request);
|
logger.trace("Cleared thread-bound request context: " + request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
if (failureCause != null) {
|
if (failureCause != null) {
|
||||||
this.logger.debug("Could not complete request", failureCause);
|
this.logger.debug("Could not complete request", failureCause);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.logger.debug("Successfully completed request");
|
this.logger.debug("Successfully completed request");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (this.publishEvents) {
|
if (this.publishEvents) {
|
||||||
// Whether or not we succeeded, publish an event.
|
// Whether or not we succeeded, publish an event.
|
||||||
long processingTime = System.currentTimeMillis() - startTime;
|
long processingTime = System.currentTimeMillis() - startTime;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue