Skip to content

Commit 3711bbd

Browse files
committed
this?
1 parent 22165b3 commit 3711bbd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/BenchmarksApps/TLS/Kestrel/Program.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
Console.WriteLine("Starting application...");
1414

1515
var builder = WebApplication.CreateBuilder(args);
16-
builder.Logging.ClearProviders();
16+
// builder.Logging.ClearProviders();
17+
builder.Logging.SetMinimumLevel(LogLevel.Debug).AddConsole();
1718

1819
// behavioral
1920
var mTlsEnabled = bool.TryParse(builder.Configuration["mTLS"], out var mTlsEnabledConfig) && mTlsEnabledConfig;
@@ -117,13 +118,6 @@ void ConfigureListen(KestrelServerOptions serverOptions, IConfigurationRoot conf
117118
}
118119
});
119120

120-
// to see
121-
builder.WebHost.ConfigureLogging((_, factory) =>
122-
{
123-
factory.SetMinimumLevel(LogLevel.Debug);
124-
factory.AddConsole();
125-
});
126-
127121
var app = builder.Build();
128122

129123
app.UseHostFiltering();

0 commit comments

Comments
 (0)