Skip to content

Commit 29bbf06

Browse files
authored
Turn off gRPC interop test console color logging (#22923)
1 parent 65e933e commit 29bbf06

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Grpc/test/testassets/InteropClient/InteropClient.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ private InteropClient(ClientOptions options)
9797
services.AddLogging(configure =>
9898
{
9999
configure.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
100-
configure.AddConsole(loggerOptions => loggerOptions.IncludeScopes = true);
100+
configure.AddConsole(loggerOptions =>
101+
{
102+
loggerOptions.IncludeScopes = true;
103+
loggerOptions.DisableColors = true;
104+
});
101105
});
102106

103107
serviceProvider = services.BuildServiceProvider();

src/Grpc/test/testassets/InteropWebsite/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
3737
Host.CreateDefaultBuilder(args)
3838
.ConfigureLogging(builder =>
3939
{
40-
builder.AddConsole();
40+
builder.AddConsole(o => o.DisableColors = true);
4141
builder.SetMinimumLevel(LogLevel.Trace);
4242
})
4343
.ConfigureWebHostDefaults(webBuilder =>

0 commit comments

Comments
 (0)