1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +08:00

Add logging of progress every so often

This commit is contained in:
Dean Herbert 2023-12-18 18:41:36 +09:00
parent bfa90e9dcb
commit 5ab3815123
No known key found for this signature in database

View File

@ -380,7 +380,8 @@ namespace osu.Game
notification.Text = notification.Text.ToString().Split('(').First().TrimEnd() + $" ({processedCount} of {totalCount})";
notification.Progress = (float)processedCount / totalCount;
// TODO add log output
if (processedCount % 100 == 0)
Logger.Log(notification.Text.ToString());
}
private void completeNotification(ProgressNotification? notification, int processedCount, int totalCount, int? failedCount = null)