You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ve...@apache.org on 2013/11/24 00:52:19 UTC

svn commit: r1544894 - /synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/EchoHttpServerController.java

Author: veithen
Date: Sat Nov 23 23:52:19 2013
New Revision: 1544894

URL: http://svn.apache.org/r1544894
Log:
Added some debug logging.

Modified:
    synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/EchoHttpServerController.java

Modified: synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/EchoHttpServerController.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/EchoHttpServerController.java?rev=1544894&r1=1544893&r2=1544894&view=diff
==============================================================================
--- synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/EchoHttpServerController.java (original)
+++ synapse/trunk/java/modules/integration/src/test/java/org/apache/synapse/samples/framework/EchoHttpServerController.java Sat Nov 23 23:52:19 2013
@@ -78,6 +78,9 @@ public class EchoHttpServerController ex
             if (request instanceof HttpEntityEnclosingRequest) {
                 HttpEntity entity = ((HttpEntityEnclosingRequest) request).getEntity();
                 byte[] entityContent = EntityUtils.toByteArray(entity);
+                if (log.isDebugEnabled()) {
+                	log.debug("Request entity read; size=" + entityContent.length);
+                }
                 response.setStatusCode(HttpStatus.SC_OK);
                 response.setEntity(new ByteArrayEntity(entityContent,
                         ContentType.create(entity.getContentType().getValue())));