mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:07:52 +08:00
Improve logging of RPC
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
This commit is contained in:
parent
0ecfa580d7
commit
c71daba4f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user