This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 9e8135d877c CAMEL-16834: error handler in DSL model
9e8135d877c is described below

commit 9e8135d877c65c89c01ef817fa35099f6e3dac4f
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Apr 8 11:06:26 2022 +0200

    CAMEL-16834: error handler in DSL model
---
 .../java/org/apache/camel/jta/JtaTransactionErrorHandlerReifier.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-jta/src/main/java/org/apache/camel/jta/JtaTransactionErrorHandlerReifier.java
 
b/components/camel-jta/src/main/java/org/apache/camel/jta/JtaTransactionErrorHandlerReifier.java
index 7dfa4f2e0d5..b1aac621340 100644
--- 
a/components/camel-jta/src/main/java/org/apache/camel/jta/JtaTransactionErrorHandlerReifier.java
+++ 
b/components/camel-jta/src/main/java/org/apache/camel/jta/JtaTransactionErrorHandlerReifier.java
@@ -116,7 +116,7 @@ public class JtaTransactionErrorHandlerReifier extends 
ErrorHandlerReifier<JtaTr
             answer = new 
CamelLogger(LoggerFactory.getLogger(TransactionErrorHandler.class), 
LoggingLevel.ERROR);
         }
         if (definition.getLevel() != null) {
-            answer.setLevel(definition.getLevel());
+            answer.setLevel(parse(LoggingLevel.class, definition.getLevel()));
         }
         return answer;
     }

Reply via email to