From 2661059128b50704bcea41d37d40bb9ff53cd6d2 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 17 Apr 2024 17:40:19 +0200 Subject: [PATCH] Fix RPC spamming warnings and errors --- .../EliteDangerousApiDiscordRichPresence.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Discord/EliteAPI.Discord/EliteDangerousApiDiscordRichPresence.cs b/Discord/EliteAPI.Discord/EliteDangerousApiDiscordRichPresence.cs index b1aaf59a..9f1e8458 100644 --- a/Discord/EliteAPI.Discord/EliteDangerousApiDiscordRichPresence.cs +++ b/Discord/EliteAPI.Discord/EliteDangerousApiDiscordRichPresence.cs @@ -15,7 +15,7 @@ public class EliteDangerousApiDiscordRichPresence { private readonly ILogger _log; private readonly IEliteDangerousApi _api; - private readonly DiscordRpcClient _client; + private DiscordRpcClient _client; private string _currentSystem = ""; private string _currentBody = ""; @@ -25,13 +25,15 @@ public EliteDangerousApiDiscordRichPresence(ILogger(OnFileheader); @@ -481,12 +483,12 @@ public void Info(string message, params object[] args) public void Warning(string message, params object[] args) { - _log.LogWarning(message, args); + _log.LogDebug(message, args); } public void Error(string message, params object[] args) { - _log.LogError(message, args); + _log.LogDebug(message, args); } public DiscordRPC.Logging.LogLevel Level { get; set; }