You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ni...@apache.org on 2011/06/16 04:48:48 UTC

svn commit: r1136274 - /cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java

Author: ningjiang
Date: Thu Jun 16 02:48:48 2011
New Revision: 1136274

URL: http://svn.apache.org/viewvc?rev=1136274&view=rev
Log:
Flush the writer make sure the message was wroten

Modified:
    cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java

Modified: cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java?rev=1136274&r1=1136273&r2=1136274&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java (original)
+++ cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java Thu Jun 16 02:48:48 2011
@@ -145,6 +145,8 @@ public abstract class AbstractLoggingInt
         message = transform(message);
         if (writer != null) {
             writer.println(message);
+            // Flushing the writer to make sure the message is wroten 
+            writer.flush();
         } else if (getLogger().isLoggable(Level.INFO)) {
             getLogger().info(message);
         }