Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions test/Grpc.IntegrationTests/GrpcSidecarFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ public GrpcSidecarFixture()
// Use a random port number to allow multiple instances to run in parallel
string address = $"http://{ListenHost}:{Random.Shared.Next(30000, 40000)}";
this.host = Host.CreateDefaultBuilder()
.ConfigureLogging(logging =>
{
// Reduce logging verbosity to make test output more readable and organized.
// Filter out noisy ASP.NET Core and gRPC infrastructure logs while keeping
// important DurableTask sidecar logs for debugging.
logging.SetMinimumLevel(LogLevel.Warning);
logging.AddFilter("Microsoft.DurableTask.Sidecar", LogLevel.Information);
logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Information);
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder
Expand Down
Loading