From c2016f592fceb46bd2e3ea0e013a1d8cfbad1e7e Mon Sep 17 00:00:00 2001 From: Andrei Epure Date: Sat, 19 Aug 2023 19:27:11 +0200 Subject: [PATCH] minor change in sentry --- src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs index 240abb4082f..fbee556c9ca 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -235,7 +235,7 @@ public bool IsSentryMessage(LogEventInfo logEvent) return logEvent.Properties["Sentry"] != null; } - if (logEvent.Level >= LogLevel.Warn && logEvent.Exception != null) + if (logEvent.Level >= LogLevel.Error && logEvent.Exception != null) { if (FilterEvents) { @@ -271,8 +271,8 @@ public bool IsSentryMessage(LogEventInfo logEvent) } } - var sqlEx = ex as SQLiteException; - if (sqlEx != null && FilteredSQLiteErrors.Contains(sqlEx.ResultCode)) + var sqlException = ex as SQLiteException; + if (sqlException != null && FilteredSQLiteErrors.Contains(sqlException.ResultCode)) { isSentry = false; }