Centralise logging of failed ruleset loads

This commit is contained in:
Dean Herbert
2022-08-18 16:14:38 +09:00
parent e0edaf996f
commit b0a740071e
2 changed files with 9 additions and 5 deletions

View File

@ -5,7 +5,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Extensions.ObjectExtensions;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Game.Beatmaps;
using osu.Game.Database;
@ -91,8 +90,7 @@ namespace osu.Game.Rulesets
catch (Exception ex)
{
r.Available = false;
Logger.Log($"Could not load ruleset {r.Name}. Please check for an update from the developer.", level: LogLevel.Error);
Logger.Log($"Ruleset load failed with {ex.Message}");
LogFailedLoad(r.Name, ex);
}
}