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

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

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


##########
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:
   Why do we need to catch the exception now knowing it was not needed before? 



-- 
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