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);