mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Replace one stupid hack with another.
This commit is contained in:
parent
9f9441788c
commit
8465c2d227
2 changed files with 10 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
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)
|
if (logEvent.Exception != null)
|
||||||
{
|
{
|
||||||
sentryEvent.Fingerprint.Add(logEvent.Exception.GetType().FullName);
|
sentryEvent.Fingerprint.Add(logEvent.Exception.GetType().FullName);
|
||||||
|
|
|
@ -105,11 +105,6 @@ namespace NzbDrone.Core.Datastore
|
||||||
return dataMapper;
|
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;
|
return db;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue