mirror of
https://github.com/Readarr/Readarr
synced 2026-05-08 21:13:58 +02:00
Filter OOM from sentry
This commit is contained in:
parent
490e42015b
commit
ea56775fa6
2 changed files with 4 additions and 1 deletions
|
|
@ -22,7 +22,8 @@ public class SentryTargetFixture : TestBase
|
||||||
|
|
||||||
private static Exception[] FilteredExceptions = new Exception[] {
|
private static Exception[] FilteredExceptions = new Exception[] {
|
||||||
new UnauthorizedAccessException(),
|
new UnauthorizedAccessException(),
|
||||||
new TinyIoC.TinyIoCResolutionException(typeof(string))
|
new TinyIoC.TinyIoCResolutionException(typeof(string)),
|
||||||
|
new OutOfMemoryException()
|
||||||
};
|
};
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ public class SentryTarget : TargetWithLayout
|
||||||
private static readonly HashSet<string> FilteredExceptionTypeNames = new HashSet<string> {
|
private static readonly HashSet<string> FilteredExceptionTypeNames = new HashSet<string> {
|
||||||
// UnauthorizedAccessExceptions will just be user configuration issues
|
// UnauthorizedAccessExceptions will just be user configuration issues
|
||||||
"UnauthorizedAccessException",
|
"UnauthorizedAccessException",
|
||||||
|
// Out Of Memory isn't very informative
|
||||||
|
"OutOfMemoryException",
|
||||||
// Filter out people stuck in boot loops
|
// Filter out people stuck in boot loops
|
||||||
"CorruptDatabaseException",
|
"CorruptDatabaseException",
|
||||||
// This also filters some people in boot loops
|
// This also filters some people in boot loops
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue