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

Merge pull request #21760 from Flutterish/disable-custom-target-log-notifications

Don't post notifications from custom log targets
This commit is contained in:
Salman Ahmed 2022-12-22 20:46:15 +03:00 committed by GitHub
commit 867a1963be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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