mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 13:42:56 +08:00
Don't forward timeout exceptions to sentry
This commit is contained in:
parent
eeddadef54
commit
370a81d78a
@ -4,6 +4,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Logging;
|
||||
using SharpRaven;
|
||||
@ -46,6 +47,16 @@ namespace osu.Game.Utils
|
||||
return;
|
||||
}
|
||||
|
||||
if (exception is WebException we)
|
||||
{
|
||||
switch (we.Status)
|
||||
{
|
||||
// more statuses may need to be blocked as we come across them.
|
||||
case WebExceptionStatus.Timeout:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// since we let unhandled exceptions go ignored at times, we want to ensure they don't get submitted on subsequent reports.
|
||||
if (lastException != null &&
|
||||
lastException.Message == exception.Message && exception.StackTrace.StartsWith(lastException.StackTrace))
|
||||
|
Loading…
Reference in New Issue
Block a user