camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/5] camel git commit: Polished so showing endpoint is a bit nicer in toString such as the start/stop logs from Camel.
Date Sat, 07 May 2016 13:18:07 GMT
Polished so showing endpoint is a bit nicer in toString such as the start/stop logs from Camel.


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

Branch: refs/heads/master
Commit: 54650352eeda6ad088fe0f3e573b169148cc9a2a
Parents: e58ffc5
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat May 7 11:41:50 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat May 7 11:42:05 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/impl/DefaultEndpoint.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/54650352/camel-core/src/main/java/org/apache/camel/impl/DefaultEndpoint.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultEndpoint.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultEndpoint.java
index eded370..2cc6dd1 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultEndpoint.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultEndpoint.java
@@ -164,7 +164,8 @@ public abstract class DefaultEndpoint extends ServiceSupport implements
Endpoint
             } catch (RuntimeException e) {
                 // ignore any exception and use null for building the string value
             }
-            endpointUriToString = String.format("Endpoint[%s]", URISupport.sanitizeUri(value));
+            // ensure to sanitize uri so we do not show sensitive information such as passwords
+            endpointUriToString = URISupport.sanitizeUri(value);
         }
         return endpointUriToString;
     }


Mime
View raw message