Skip to content

Commit afa07f0

Browse files
fjtiradorgdoliveira
authored andcommitted
Properly trace cloud events (apache#3271)
* Properly trace cloud events * Trying to avoid flaky test on PojoServiceIt * Revert "Trying to avoid flaky test on PojoServiceIt" This reverts commit 8a6a38a. * Try setting test order * Revert "Try setting test order" This reverts commit 57e6a5b.
1 parent ec22f09 commit afa07f0

File tree

1 file changed

+3
-1
lines changed
  • quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/test/java/org/kie/kogito/quarkus/workflows

1 file changed

+3
-1
lines changed

quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/test/java/org/kie/kogito/quarkus/workflows/WorkflowTestUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ public static <T extends DataEvent<?>> JsonPath waitForKogitoProcessInstanceEven
5252

5353
kafkaClient.consume(KOGITO_PROCESSINSTANCES_EVENTS, rawCloudEvent -> {
5454
JsonPath path = new JsonPath(rawCloudEvent);
55-
LOGGER.debug("CLOUD EVENT:\n{}" + path.prettyPrint());
55+
if (LOGGER.isDebugEnabled()) {
56+
LOGGER.debug("CLOUD EVENT: {}", path.prettyPrint());
57+
}
5658
String type = path.get("type");
5759
if (eventType.getSimpleName().equals(type) && predicate.test(path)) {
5860
cloudEvent.set(path);

0 commit comments

Comments
 (0)