From 8465c2d227ce5f053cadcccf4807aa9556fb4c9f Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 6 Dec 2018 22:20:13 -0500 Subject: [PATCH] Fixed: Replace one stupid hack with another. --- .../Instrumentation/Sentry/SentryTarget.cs | 12 ++++++++++-- src/NzbDrone.Core/Datastore/DbFactory.cs | 5 ----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs index 7a98622e0..6d66f5e02 100644 --- a/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs +++ b/src/NzbDrone.Common/Instrumentation/Sentry/SentryTarget.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -164,6 +164,14 @@ namespace NzbDrone.Common.Instrumentation.Sentry } }; + // Fix openflixr being stupid with permissions + var serverName = sentryEvent.Contexts.Device.Name.ToLower(); + + if (serverName == "openflixr") + { + return; + } + if (logEvent.Exception != null) { sentryEvent.Fingerprint.Add(logEvent.Exception.GetType().FullName); @@ -191,4 +199,4 @@ namespace NzbDrone.Common.Instrumentation.Sentry } } } -} \ No newline at end of file +} diff --git a/src/NzbDrone.Core/Datastore/DbFactory.cs b/src/NzbDrone.Core/Datastore/DbFactory.cs index f231e7b2f..8920fdec6 100644 --- a/src/NzbDrone.Core/Datastore/DbFactory.cs +++ b/src/NzbDrone.Core/Datastore/DbFactory.cs @@ -105,11 +105,6 @@ namespace NzbDrone.Core.Datastore return dataMapper; }); - if (db.Migration > 100) //Quick DB Migration Check. This should get rid of users on old DB format - { - throw new CorruptDatabaseException("Invalid DB, Please Delete and Restart Lidarr"); - } - return db; }