From 1747ed84a803beb6473d5110183e18ed247d63e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Sun, 8 Feb 2026 19:43:13 +0100 Subject: [PATCH] Disable logging synchronizer exceptions to sentry. --- Wino.Services/WinoLogger.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Wino.Services/WinoLogger.cs b/Wino.Services/WinoLogger.cs index 719f4fc7..d87edeff 100644 --- a/Wino.Services/WinoLogger.cs +++ b/Wino.Services/WinoLogger.cs @@ -3,6 +3,7 @@ using Sentry; using Serilog; using Serilog.Core; using Serilog.Exceptions; +using Wino.Core.Domain.Exceptions; using Wino.Core.Domain.Interfaces; namespace Wino.Services; @@ -47,9 +48,13 @@ public class WinoLogger : IWinoLogger #endif options.AutoSessionTracking = true; - // Set user context + // Set user context and filter out known exceptions. options.SetBeforeSend((sentryEvent, hint) => { + // Don't send synchronization failure exceptions to Sentry. + if (sentryEvent.Exception is SynchronizerException) + return null; + sentryEvent.User = new SentryUser { Id = _preferencesService.DiagnosticId