Don't log disk space related IO errors

This commit is contained in:
Dean Herbert 2018-10-31 16:43:35 +09:00
parent f6666e6ecc
commit 29a1d092fa
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using osu.Framework.Logging;
using SharpRaven;
@ -35,6 +36,9 @@ public RavenLogger(OsuGame game)
if (exception != null)
{
if (exception is IOException ioe && ioe.Message.StartsWith("There is not enough space on the disk"))
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))