You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/01/17 17:41:40 UTC
svn commit: r1559176 -
/cxf/branches/2.7.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
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());
}