From 044558b7f89310ac4d4f20e8e6b0b250fb8aa7b7 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 93f1981f4..36557b62a 100644 --- a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs +++ b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs @@ -202,6 +202,7 @@ namespace NzbDrone.Common.Instrumentation 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("Prowlarr.Http.Authentication.ApiKeyAuthenticationHandler").WriteToNil(LogLevel.Info); }); } diff --git a/src/NzbDrone.Host/Startup.cs b/src/NzbDrone.Host/Startup.cs index 5a1dc92d9..aa8b1b75e 100644 --- a/src/NzbDrone.Host/Startup.cs +++ b/src/NzbDrone.Host/Startup.cs @@ -51,7 +51,7 @@ namespace NzbDrone.Host b.ClearProviders(); b.SetMinimumLevel(LogLevel.Trace); b.AddFilter("Microsoft.AspNetCore", LogLevel.Warning); - b.AddFilter("Prowlarr.Http.Authentication", LogLevel.Information); + b.AddFilter("Prowlarr.Http.Authentication.ApiKeyAuthenticationHandler", LogLevel.Information); b.AddFilter("Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager", LogLevel.Error); b.AddNLog(); });