mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 21:52:54 +08:00
Merge pull request #19324 from peppy/background-processor-error-logging
Add error logging for background processing failures
This commit is contained in:
commit
2205e0dc3d
@ -126,10 +126,17 @@ namespace osu.Game
|
|||||||
var set = r.Find<BeatmapSetInfo>(id);
|
var set = r.Find<BeatmapSetInfo>(id);
|
||||||
|
|
||||||
if (set != null)
|
if (set != null)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
Logger.Log($"Background processing {set} ({++i} / {beatmapSetIds.Count})");
|
Logger.Log($"Background processing {set} ({++i} / {beatmapSetIds.Count})");
|
||||||
beatmapUpdater.Process(set);
|
beatmapUpdater.Process(set);
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Logger.Log($"Background processing failed on {set}: {e}");
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user