From 1d4c5068308e940f2c1d73bea1fe6e4299951c92 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 (cherry picked from commit 78ca30d1f81361a2dabaddd0036b764859b858af) --- 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 69b791a4de..bd9b48840e 100644 --- a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs +++ b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs @@ -202,6 +202,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("Radarr.Http.Authentication.ApiKeyAuthenticationHandler").WriteToNil(LogLevel.Info); }); } diff --git a/src/NzbDrone.Host/Startup.cs b/src/NzbDrone.Host/Startup.cs index d58639853a..265ba58bd5 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("Radarr.Http.Authentication", LogLevel.Information); + b.AddFilter("Radarr.Http.Authentication.ApiKeyAuthenticationHandler", LogLevel.Information); b.AddFilter("Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager", LogLevel.Error); b.AddNLog(); });