1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 16:02:55 +08:00

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

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 @@ namespace osu.Game.Utils
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))