You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/05/07 13:18:07 UTC
[2/5] camel git commit: Polished so showing endpoint is a bit nicer
in toString such as the start/stop logs from Camel.
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 <da...@apache.org>
Authored: Sat May 7 11:41:50 2016 +0200
Committer: Claus Ibsen <da...@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;
}