1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-25 23:32:41 +00:00

Filter OOM from sentry

This commit is contained in:
ta264 2019-10-24 21:42:41 +01:00 committed by Qstick
parent 4d4fd09335
commit fc5e2b63e0
2 changed files with 4 additions and 1 deletions

View file

@ -22,7 +22,8 @@ public class SentryTargetFixture : TestBase
private static Exception[] FilteredExceptions = new Exception[] {
new UnauthorizedAccessException(),
new TinyIoC.TinyIoCResolutionException(typeof(string))
new TinyIoC.TinyIoCResolutionException(typeof(string)),
new OutOfMemoryException()
};
[SetUp]

View file

@ -38,6 +38,8 @@ public class SentryTarget : TargetWithLayout
private static readonly HashSet<string> FilteredExceptionTypeNames = new HashSet<string> {
// UnauthorizedAccessExceptions will just be user configuration issues
"UnauthorizedAccessException",
// Out Of Memory isn't very informative
"OutOfMemoryException",
// Filter out people stuck in boot loops
"CorruptDatabaseException",
// This also filters some people in boot loops