lburgazzoli commented on a change in pull request #138: #137 Add the error log 
when setting component property failed 
URL: https://github.com/apache/camel-k-runtime/pull/138#discussion_r321963977
 
 

 ##########
 File path: 
camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/ComponentConfiguration.groovy
 ##########
 @@ -49,13 +52,15 @@ class ComponentConfiguration {
         }
 
         if 
(!PropertyBindingSupport.build().withCamelContext(component.camelContext).withTarget(component).withProperty(name,
 value).bind()) {
+            LOG.error("Cannot set the component {} property {} with {}", 
component.class.getName(), name, value)
             throw new MissingMethodException(name, this.component.class, args 
as Object[])
         }
     }
 
     def propertyMissing(String name, value) {
         if 
(!PropertyBindingSupport.build().withCamelContext(component.camelContext).withTarget(component).withProperty(name,
 value).bind()) {
-            throw new MissingMethodException(name, this.component.class, value)
+            LOG.error("Cannot set the component {} property {} with {}", 
component.class.getName(), name, value)
 
 Review comment:
   same as above

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to