1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 05:47:20 +08:00

dont post notifications from custom log targets

This commit is contained in:
Flutterish 2022-12-22 16:56:27 +01:00
parent 15a162a943
commit 422fdd8ae5

View File

@ -1040,7 +1040,7 @@ namespace osu.Game
Logger.NewEntry += entry =>
{
if (entry.Level < LogLevel.Important || entry.Target > LoggingTarget.Database) return;
if (entry.Level < LogLevel.Important || entry.Target is null or > LoggingTarget.Database) return;
Debug.Assert(entry.Target != null);