cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject 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
Date Tue, 28 Feb 2017 12:22:04 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes b453109b0 -> 5de4b8670


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/5de4b867
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/5de4b867
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/5de4b867

Branch: refs/heads/3.1.x-fixes
Commit: 5de4b86701c6787a7ed53087cb57a4ab47d9d7dd
Parents: b453109
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Feb 28 11:31:43 2017 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Feb 28 12:21:45 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/5de4b867/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());


Mime
View raw message