cxf-commits mailing list archives

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

URL: http://svn.apache.org/r1559190
Log:
Merged revisions 1559176 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/branches/2.7.x-fixes

........
  r1559176 | dkulp | 2014-01-17 11:41:40 -0500 (Fri, 17 Jan 2014) | 10 lines

  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.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java

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



Mime
View raw message