From a18944f7bcb6d676171d3cd776c338bb2b6dbea3 Mon Sep 17 00:00:00 2001 From: Kevin Hanks <36553759+forkymcforkface@users.noreply.github.com> Date: Wed, 18 Feb 2026 15:12:56 -0800 Subject: [PATCH] Fix Sentry sending telemetry data when analytics is disabled Change Sentry log level threshold from Debug to Warn Prevents Sentry from capturing and sending debug-level events to sentry.servarr.com during startup before the telemetry configuration is loaded. This respects users' analytics opt-out preference earlier in the application lifecycle. Aligns with Sonarr's implementation for consistent behavior across Servarr applications. --- src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs index bd9b48840e..9d4a77960d 100644 --- a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs +++ b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs @@ -87,7 +87,7 @@ private static void RegisterSentry(bool updateClient, IAppFolderInfo appFolderIn Layout = "${message}" }; - var loggingRule = new LoggingRule("*", updateClient ? LogLevel.Trace : LogLevel.Debug, target); + var loggingRule = new LoggingRule("*", updateClient ? LogLevel.Trace : LogLevel.Warn, target); LogManager.Configuration.AddTarget("sentryTarget", target); LogManager.Configuration.LoggingRules.Add(loggingRule);