claudio4j commented on code in PR #5251:
URL: https://github.com/apache/camel-k/pull/5251#discussion_r1526542556


##########
pkg/trait/logging.go:
##########
@@ -61,7 +61,15 @@ func (l loggingTrait) Configure(e *Environment) (bool, 
*TraitCondition, error) {
 }
 
 func (l loggingTrait) Apply(e *Environment) error {
-       envvar.SetVal(&e.EnvVars, envVarQuarkusLogLevel, l.Level)
+       if loggingCap, ok := e.CamelCatalog.Runtime.Capabilities["logging"]; ok 
{
+               if e.ApplicationProperties == nil {
+                       e.ApplicationProperties = make(map[string]string)
+               }
+               e.ApplicationProperties[loggingCap.Properties["level"]] = 
l.Level

Review Comment:
   the properties in capabilities may be an array, so in the trait code it just 
iterates over the key/values. So, there is no need to set individual property 
keys.



-- 
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-unsubscr...@camel.apache.org

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

Reply via email to