You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2023/07/28 17:31:02 UTC

[GitHub] [camel] davsclaus commented on a diff in pull request #10889: CAMEL-19676: camel-core: Do not log sensitive endpoint uri, if route …

davsclaus commented on code in PR #10889:
URL: https://github.com/apache/camel/pull/10889#discussion_r1277879101


##########
core/camel-core-model/src/main/java/org/apache/camel/model/SendDefinition.java:
##########
@@ -106,7 +109,18 @@ public String getPattern() {
 
     @Override
     public String getLabel() {
-        String uri = getEndpointUri();
+        if (endpointUriToString == null) {
+            String value = null;
+            try {
+                value = getEndpointUri();
+            } catch (RuntimeException e) {
+                // ignore any exception and use null for building the string value

Review Comment:
   Thats how the code is done elsewhere, its just for a lavel



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org