You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2017/02/28 11:31:58 UTC

cxf git commit: Reverting LogMessageFormatter starting from the next line, but also dropped a 'Type' prefix to get a possibly more optimal output, can be put back easily

Repository: cxf
Updated Branches:
  refs/heads/master 7c3a8b02a -> 9ab47ba08


Reverting LogMessageFormatter starting from the next line, but also dropped a 'Type' prefix to get a possibly more optimal output, can be put back easily


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

Branch: refs/heads/master
Commit: 9ab47ba086ff149adfa7fe4b55759646e99c5719
Parents: 7c3a8b0
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Tue Feb 28 11:31:43 2017 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Tue Feb 28 11:31:43 2017 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/ext/logging/event/LogMessageFormatter.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/9ab47ba0/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java
----------------------------------------------------------------------
diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java
index 22ed7a5..1ffdba5 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java
+++ b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/LogMessageFormatter.java
@@ -34,9 +34,8 @@ public final class LogMessageFormatter {
     public static String format(LogEvent event) {
         StringBuilder b = new StringBuilder();
         // Start from the next line to have the output well-aligned
-        b.append('\n');
+        b.append(event.getType()).append('\n');
         
-        write(b, "Type", event.getType().toString());
         write(b, "Address", event.getAddress());
         write(b, "HttpMethod", event.getHttpMethod());
         write(b, "Content-Type", event.getContentType());