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

Output startup component load start/end times to non-debug logs

Useful for diagnosing issues in cases like #13981.
This commit is contained in:
Dean Herbert 2021-07-22 14:45:56 +09:00
parent edce3e0efe
commit db6f323266

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)
{ {