1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 05:22:54 +08:00

Improve logging of RPC

Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
This commit is contained in:
jvyden 2024-03-19 16:05:13 -04:00
parent 0ecfa580d7
commit c71daba4f6
No known key found for this signature in database
GPG Key ID: 18BCF2BE0262B278

View File

@ -117,8 +117,6 @@ namespace osu.Desktop
return;
}
Logger.Log("Updating Discord RPC", LoggingTarget.Network, LogLevel.Debug);
bool hideIdentifiableInformation = privacyMode.Value == DiscordRichPresenceMode.Limited || status.Value == UserStatus.DoNotDisturb;
if (activity.Value != null)
@ -181,6 +179,8 @@ namespace osu.Desktop
usersCurrentlyInLobby = 0;
}
Logger.Log($"Updating Discord RPC presence with activity status: {presence.State}, details: {presence.Details}", LoggingTarget.Network, LogLevel.Debug);
// update user information
if (privacyMode.Value == DiscordRichPresenceMode.Limited)
presence.Assets.LargeImageText = string.Empty;