From 80cf89c86d95b9ab2b4cd8be06aeda6ca541293c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 29 Jun 2025 21:40:19 -0700 Subject: [PATCH] Don't log debug messages for API key validation Closes #7934 --- src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs | 1 + src/NzbDrone.Host/Startup.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs index c33211019..36c3b1ec0 100644 --- a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs +++ b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs @@ -201,6 +201,7 @@ private static void RegisterGlobalFilters() c.ForLogger("Microsoft.*").WriteToNil(LogLevel.Warn); c.ForLogger("Microsoft.Hosting.Lifetime*").WriteToNil(LogLevel.Info); c.ForLogger("Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware").WriteToNil(LogLevel.Fatal); + c.ForLogger("Lidarr.Http.Authentication.ApiKeyAuthenticationHandler").WriteToNil(LogLevel.Info); }); } diff --git a/src/NzbDrone.Host/Startup.cs b/src/NzbDrone.Host/Startup.cs index 75f19260e..c64e55638 100644 --- a/src/NzbDrone.Host/Startup.cs +++ b/src/NzbDrone.Host/Startup.cs @@ -52,7 +52,7 @@ public void ConfigureServices(IServiceCollection services) b.ClearProviders(); b.SetMinimumLevel(LogLevel.Trace); b.AddFilter("Microsoft.AspNetCore", LogLevel.Warning); - b.AddFilter("Lidarr.Http.Authentication", LogLevel.Information); + b.AddFilter("Lidarr.Http.Authentication.ApiKeyAuthenticationHandler", LogLevel.Information); b.AddFilter("Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager", LogLevel.Error); b.AddNLog(); });