cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r743469 - in /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor: LoggingInInterceptor.java LoggingMessage.java
Date Wed, 11 Feb 2009 19:53:44 GMT
Author: dkulp
Date: Wed Feb 11 19:53:44 2009
New Revision: 743469

URL: http://svn.apache.org/viewvc?rev=743469&view=rev
Log:
Update logging to not output messages line if there aren't any messages

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java?rev=743469&r1=743468&r2=743469&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java Wed
Feb 11 19:53:44 2009
@@ -116,8 +116,6 @@
                     //large thing on disk...
                     buffer.getMessage().append("\nMessage (saved to tmp file):\n");
                     buffer.getMessage().append("Filename: " + bos.getTempFile().getAbsolutePath()
+ "\n");
-                } else {            
-                    buffer.getMessage().append("\nMessage:\n");
                 }
                 if (bos.size() > limit) {
                     buffer.getMessage().append("(message truncated to " + limit + " bytes)\n");

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java?rev=743469&r1=743468&r2=743469&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingMessage.java Wed Feb
11 19:53:44 2009
@@ -75,8 +75,10 @@
         buffer.append(contentType);
         buffer.append("\nHeaders: ");
         buffer.append(header);
-        buffer.append("\nMessages: ");
-        buffer.append(message);
+        if (message.length() > 0) {
+            buffer.append("\nMessages: ");
+            buffer.append(message);
+        }
         buffer.append("\nPayload: ");
         buffer.append(payload);
         buffer.append("\n--------------------------------------");



Mime
View raw message