From f949b2d3c34d10d099338fc7c2e340edec85b959 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Tue, 20 Jan 2015 17:22:51 -0500 Subject: [PATCH] Remove logging statement in ResponseBodyAdviceChain Issue: SPR-12616 --- .../mvc/method/annotation/ResponseBodyAdviceChain.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyAdviceChain.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyAdviceChain.java index 566c37b5ce..527deee79d 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyAdviceChain.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyAdviceChain.java @@ -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 { 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 { throw new IllegalStateException("Expected ResponseBodyAdvice: " + advice); } } - if (logger.isDebugEnabled()) { - logger.debug("After ResponseBodyAdvice chain body=" + body); - } } return body; }