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


##########
core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java:
##########
@@ -1851,6 +1869,28 @@ private void setOtel2Properties(
         }
     }
 
+    private void setMdcProperties(
+            CamelContext camelContext, OrderedLocationProperties mdcProperties,
+            boolean failIfNotSet, OrderedLocationProperties 
autoConfiguredProperties)
+            throws Exception {
+
+        String loc = mdcProperties.getLocation("enabled");
+        Object obj = mdcProperties.remove("enabled");
+        if (ObjectHelper.isNotEmpty(obj)) {
+            autoConfiguredProperties.put(loc, "camel.mdc.enabled", 
obj.toString());
+        }
+        boolean enabled = obj != null ? 
CamelContextHelper.parseBoolean(camelContext, obj.toString()) : true;
+        if (enabled) {
+            CamelMDCService mdc = resolveMDCService(camelContext);
+            setPropertiesOnTarget(camelContext, mdc, mdcProperties, 
"camel.mdc.", failIfNotSet, true,

Review Comment:
   Ah okay, yeah so that was for ignore case



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to