cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1559176 - /cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Date Fri, 17 Jan 2014 16:41:40 GMT
Author: dkulp
Date: Fri Jan 17 16:41:40 2014
New Revision: 1559176

URL: http://svn.apache.org/r1559176
Log:
Merged revisions 1559171 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1559171 | dkulp | 2014-01-17 11:33:38 -0500 (Fri, 17 Jan 2014) | 2 lines

  [CXF-5500] Limit what get's logged from the conduit with FINE logging

........

Modified:
    cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java

Modified: cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java?rev=1559176&r1=1559175&r2=1559176&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Fri Jan 17 16:41:40 2014
@@ -1357,12 +1357,13 @@ public abstract class HTTPConduit 
                 || ("GET".equals(getMethod()) && getClient().isAutoRedirect())) {
 
                 if (LOG.isLoggable(Level.FINE) && cachedStream != null) {
-                    LOG.fine("Conduit \""
-                             + getConduitName() 
-                             + "\" Transmit cached message to: " 
-                             + url
-                             + ": "
-                             + new String(cachedStream.getBytes()));
+                    StringBuilder b = new StringBuilder(4096);
+                    b.append("Conduit \"").append(getConduitName())
+                        .append("\" Transmit cached message to: ")
+                        .append(url)
+                        .append(": ");
+                    cachedStream.writeCacheTo(b, 16 * 1024);
+                    LOG.fine(b.toString());
                 }
 
 



Mime
View raw message