Skip to content

Commit cdaf449

Browse files
committed
Remove logging statement in ResponseBodyAdviceChain
Issue: SPR-12616
1 parent 84807c5 commit cdaf449

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -57,9 +57,6 @@ public <T> T invoke(T body, MethodParameter returnType,
5757
ServerHttpRequest request, ServerHttpResponse response) {
5858

5959
if (this.advice != null) {
60-
if (logger.isDebugEnabled()) {
61-
logger.debug("Invoking ResponseBodyAdvice chain for body=" + body);
62-
}
6360
for (Object advice : this.advice) {
6461
if (advice instanceof ControllerAdviceBean) {
6562
ControllerAdviceBean adviceBean = (ControllerAdviceBean) advice;
@@ -79,9 +76,6 @@ public <T> T invoke(T body, MethodParameter returnType,
7976
throw new IllegalStateException("Expected ResponseBodyAdvice: " + advice);
8077
}
8178
}
82-
if (logger.isDebugEnabled()) {
83-
logger.debug("After ResponseBodyAdvice chain body=" + body);
84-
}
8579
}
8680
return body;
8781
}

0 commit comments

Comments
 (0)