Browse Source

Remove logging statement in ResponseBodyAdviceChain

Issue: SPR-12616
pull/722/merge
Rossen Stoyanchev 10 years ago
parent
commit
f949b2d3c3
  1. 8
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyAdviceChain.java

8
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyAdviceChain.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2015 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.
@ -57,9 +57,6 @@ class ResponseBodyAdviceChain { @@ -57,9 +57,6 @@ class ResponseBodyAdviceChain {
ServerHttpRequest request, ServerHttpResponse response) {
if (this.advice != null) {
if (logger.isDebugEnabled()) {
logger.debug("Invoking ResponseBodyAdvice chain for body=" + body);
}
for (Object advice : this.advice) {
if (advice instanceof ControllerAdviceBean) {
ControllerAdviceBean adviceBean = (ControllerAdviceBean) advice;
@ -79,9 +76,6 @@ class ResponseBodyAdviceChain { @@ -79,9 +76,6 @@ class ResponseBodyAdviceChain {
throw new IllegalStateException("Expected ResponseBodyAdvice: " + advice);
}
}
if (logger.isDebugEnabled()) {
logger.debug("After ResponseBodyAdvice chain body=" + body);
}
}
return body;
}

Loading…
Cancel
Save