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:
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