Skip to content

Commit d81dc61

Browse files
[release/8.0-preview5] Allow cert warnings to bubble out. (#3217)
* Allow cert warnings to bubble out. * Fix unnecesary namespace. --------- Co-authored-by: Mitch Denny <[email protected]>
1 parent 0b1d21f commit d81dc61

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Aspire.Hosting/DistributedApplicationBuilder.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ public DistributedApplicationBuilder(DistributedApplicationOptions options)
7070
_innerBuilder = new HostApplicationBuilder(innerBuilderOptions);
7171

7272
_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning);
73-
_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.None);
73+
_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.Error);
74+
75+
// This is so that we can see certificate errors in the resource server in the console logs.
76+
// See: https://github.com/dotnet/aspire/issues/2914
77+
_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning);
7478

7579
AppHostDirectory = options.ProjectDirectory ?? _innerBuilder.Environment.ContentRootPath;
7680

0 commit comments

Comments
 (0)