diff --git a/Directory.Packages.props b/Directory.Packages.props index 660d1d57ab..6677373958 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -22,7 +22,7 @@ - + diff --git a/SoundSwitch/Framework/Logger/Configuration/LoggerConfigurator.cs b/SoundSwitch/Framework/Logger/Configuration/LoggerConfigurator.cs index 6d7f3af3c2..c36c244ca4 100644 --- a/SoundSwitch/Framework/Logger/Configuration/LoggerConfigurator.cs +++ b/SoundSwitch/Framework/Logger/Configuration/LoggerConfigurator.cs @@ -34,7 +34,8 @@ public static void ConfigureLogger() outputTemplate: outputTemplate) .WriteTo.Sentry(o => { - o.InitializeSdk = false; + // Sentry.Serilog v7: the sink no longer auto-initializes the SDK (InitializeSdk removed), + // so the explicit SentrySdk.Init in Program.cs stays the single initialization point. o.MinimumBreadcrumbLevel = LogEventLevel.Debug; o.MinimumEventLevel = LogEventLevel.Error; o.TextFormatter = new MessageTemplateTextFormatter(sentryTemplate);