mirror of
https://github.com/Radarr/Radarr
synced 2026-05-07 14:31:22 +02:00
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.
This commit is contained in:
parent
89110c2cc8
commit
a18944f7bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue