1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08:00

Merge pull request #13982 from peppy/log-startup-component-loads

Output startup component load start/end times to non-debug logs
This commit is contained in:
Dan Balasescu 2021-07-22 22:09:47 +09:00 committed by GitHub
commit 5ca2c4eda8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -932,7 +932,7 @@ namespace osu.Game
try try
{ {
Logger.Log($"Loading {component}...", level: LogLevel.Debug); Logger.Log($"Loading {component}...");
// Since this is running in a separate thread, it is possible for OsuGame to be disposed after LoadComponentAsync has been called // Since this is running in a separate thread, it is possible for OsuGame to be disposed after LoadComponentAsync has been called
// throwing an exception. To avoid this, the call is scheduled on the update thread, which does not run if IsDisposed = true // throwing an exception. To avoid this, the call is scheduled on the update thread, which does not run if IsDisposed = true
@ -952,7 +952,7 @@ namespace osu.Game
await task.ConfigureAwait(false); await task.ConfigureAwait(false);
Logger.Log($"Loaded {component}!", level: LogLevel.Debug); Logger.Log($"Loaded {component}!");
} }
catch (OperationCanceledException) catch (OperationCanceledException)
{ {