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 2017/02/27 19:05:25 UTC

[6/6] cxf git commit: Flush teh print writer so results are available

Flush teh print writer so results are available


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e18b4fb7
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e18b4fb7
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e18b4fb7

Branch: refs/heads/master
Commit: e18b4fb7d5f4f585eea1a2637c5158cd6e0c61af
Parents: 855d033
Author: Daniel Kulp <dk...@apache.org>
Authored: Mon Feb 27 12:24:48 2017 -0500
Committer: Daniel Kulp <dk...@apache.org>
Committed: Mon Feb 27 14:05:08 2017 -0500

----------------------------------------------------------------------
 .../org/apache/cxf/ext/logging/event/PrintWriterEventSender.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/e18b4fb7/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrintWriterEventSender.java
----------------------------------------------------------------------
diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrintWriterEventSender.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrintWriterEventSender.java
index 424e915..af1d91b 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrintWriterEventSender.java
+++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/PrintWriterEventSender.java
@@ -38,6 +38,7 @@ public class PrintWriterEventSender implements LogEventSender {
         synchronized (writer) {
             writer.print(Instant.now().toString() + " - PrintWriterEventSender");
             writer.print(LogMessageFormatter.format(event));
+            writer.flush();
         }
     }