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:
commit
5ca2c4eda8
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user