From da0919b5cbadb488f722f86e3ae761254dba0ee9 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com> Date: Mon, 6 Nov 2023 13:46:32 +0100 Subject: [PATCH] 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. --- .../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 1f7ece683c5..7a381b0089f 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 static > JsonPath waitForKogitoProcessInstanceEven 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);