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

fjtiradosarti pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git


The following commit(s) were added to refs/heads/main by this push:
     new da0919b5cb Properly trace cloud events (#3271)
da0919b5cb is described below

commit da0919b5cbadb488f722f86e3ae761254dba0ee9
Author: Francisco Javier Tirado Sarti 
<[email protected]>
AuthorDate: Mon Nov 6 13:46:32 2023 +0100

    Properly trace cloud events (#3271)
    
    * Properly trace cloud events
    
    * Trying to avoid flaky test on PojoServiceIt
    
    * Revert "Trying to avoid flaky test on PojoServiceIt"
    
    This reverts commit 8a6a38a6c7a2e7198e8371fb64f4d36036b0087d.
    
    * Try setting test order
    
    * Revert "Try setting test order"
    
    This reverts commit 57e6a5b6718d40dbe1e00fe892073e9830269957.
---
 .../test/java/org/kie/kogito/quarkus/workflows/WorkflowTestUtils.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/test/java/org/kie/kogito/quarkus/workflows/WorkflowTestUtils.java
 
b/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/test/java/org/kie/kogito/quarkus/workflows/WorkflowTestUtils.java
index 1f7ece683c..7a381b0089 100644
--- 
a/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/test/java/org/kie/kogito/quarkus/workflows/WorkflowTestUtils.java
+++ 
b/quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/test/java/org/kie/kogito/quarkus/workflows/WorkflowTestUtils.java
@@ -52,7 +52,9 @@ public class WorkflowTestUtils {
 
         kafkaClient.consume(KOGITO_PROCESSINSTANCES_EVENTS, rawCloudEvent -> {
             JsonPath path = new JsonPath(rawCloudEvent);
-            LOGGER.debug("CLOUD EVENT:\n{}" + path.prettyPrint());
+            if (LOGGER.isDebugEnabled()) {
+                LOGGER.debug("CLOUD EVENT: {}", path.prettyPrint());
+            }
             String type = path.get("type");
             if (eventType.getSimpleName().equals(type) && 
predicate.test(path)) {
                 cloudEvent.set(path);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to