use entry-assembly default logging severity "debug"

This commit is contained in:
2026-04-30 13:12:48 +02:00
parent 15b460b98c
commit 884ff91ab8
+1 -1
View File
@@ -26,7 +26,7 @@ public class LogLevelOverrides : Dictionary<string, LogLevel>
this["System.Net.Http.HttpClient"] = LogLevel.Warning;
this["Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager"] = LogLevel.Error;
string executingAssemblyName = Assembly.GetExecutingAssembly().GetName().Name;
string executingAssemblyName = Assembly.GetEntryAssembly()?.GetName().Name;
if (executingAssemblyName != null)
{
this[executingAssemblyName] = LogLevel.Debug;