debug log levels for test containers

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
This commit is contained in:
Cassandra Coyle 2025-08-07 15:21:20 -05:00 committed by Javier Aliaga
parent c927075d8f
commit 466e799210
2 changed files with 5 additions and 2 deletions

View File

@ -93,7 +93,7 @@ public class DaprTestContainersConfig {
.withAppName("consumer-app") .withAppName("consumer-app")
.withNetwork(daprNetwork).withComponent(new Component("pubsub", .withNetwork(daprNetwork).withComponent(new Component("pubsub",
"pubsub.rabbitmq", "v1", rabbitMqProperties)) "pubsub.rabbitmq", "v1", rabbitMqProperties))
.withDaprLogLevel(DaprLogLevel.INFO) .withDaprLogLevel(DaprLogLevel.DEBUG)
.withLogConsumer(outputFrame -> System.out.println(outputFrame.getUtf8String())) .withLogConsumer(outputFrame -> System.out.println(outputFrame.getUtf8String()))
.withAppPort(8081).withAppChannelAddress("host.testcontainers.internal") .withAppPort(8081).withAppChannelAddress("host.testcontainers.internal")
.withReusablePlacement(reuse) .withReusablePlacement(reuse)

View File

@ -15,6 +15,7 @@ package io.dapr.springboot.examples.wfp;
import io.dapr.testcontainers.Component; import io.dapr.testcontainers.Component;
import io.dapr.testcontainers.DaprContainer; import io.dapr.testcontainers.DaprContainer;
import io.dapr.testcontainers.DaprLogLevel;
import io.github.microcks.testcontainers.MicrocksContainersEnsemble; import io.github.microcks.testcontainers.MicrocksContainersEnsemble;
import org.junit.runner.Description; import org.junit.runner.Description;
import org.junit.runners.model.Statement; import org.junit.runners.model.Statement;
@ -44,7 +45,9 @@ public class DaprTestContainersConfig {
.withAppPort(8080) .withAppPort(8080)
.withNetwork(network) .withNetwork(network)
.withAppHealthCheckPath("/actuator/health") .withAppHealthCheckPath("/actuator/health")
.withAppChannelAddress("host.testcontainers.internal"); .withAppChannelAddress("host.testcontainers.internal")
.withDaprLogLevel(DaprLogLevel.DEBUG)
.withLogConsumer(outputFrame -> System.out.println(outputFrame.getUtf8String()));
} }