camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: CAMEL-11797: Change MessageHelper to actually use the custom message history format for lines > 1
Date Thu, 21 Sep 2017 07:28:45 GMT
CAMEL-11797: Change MessageHelper to actually use the custom message history format for lines
> 1


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

Branch: refs/heads/camel-2.19.x
Commit: 1e68bf73c3c0dfb6ac34b93b1c1e249d66dbb402
Parents: 414eb29
Author: Roman Rodov <roman.rodov@iag.com.au>
Authored: Thu Sep 21 17:22:56 2017 +1000
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Sep 21 09:28:21 2017 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/util/MessageHelper.java    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/1e68bf73/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java b/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java
index 4b34902..c19c13e 100644
--- a/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java
@@ -566,9 +566,8 @@ public final class MessageHelper {
         }
 
         String goMessageHistoryOutput = exchange.getContext().getGlobalOption(Exchange.MESSAGE_HISTORY_OUTPUT_FORMAT);
-        sb.append(String.format(
-                        goMessageHistoryOutput == null ? MESSAGE_HISTORY_OUTPUT : goMessageHistoryOutput,
-                        routeId, id, label, elapsed));
+        goMessageHistoryOutput = goMessageHistoryOutput == null ? MESSAGE_HISTORY_OUTPUT
: goMessageHistoryOutput;
+        sb.append(String.format(goMessageHistoryOutput, routeId, id, label, elapsed));
         sb.append("\n");
 
         // and then each history
@@ -582,7 +581,7 @@ public final class MessageHelper {
             label =  URISupport.sanitizeUri(StringHelper.limitLength(history.getNode().getLabel(),
100));
             elapsed = history.getElapsed();
 
-            sb.append(String.format(MESSAGE_HISTORY_OUTPUT, routeId, id, label, elapsed));
+            sb.append(String.format(goMessageHistoryOutput, routeId, id, label, elapsed));
             sb.append("\n");
         }
 


Mime
View raw message