From 05e18e8002349e7fcf96647c5b63cc4a5f9d2623 Mon Sep 17 00:00:00 2001 From: Nick Westerhausen Date: Wed, 30 Oct 2024 15:41:05 -0400 Subject: [PATCH] fix: don't both trying to log webhook url, too sensitive --- DiscordConnector/DiscordApi.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/DiscordConnector/DiscordApi.cs b/DiscordConnector/DiscordApi.cs index 1948cc0..c312b8d 100644 --- a/DiscordConnector/DiscordApi.cs +++ b/DiscordConnector/DiscordApi.cs @@ -170,15 +170,7 @@ private static void DispatchRequest(WebhookEntry webhook, byte[] byteArray) // Create an identifier for the request string requestId = GuidHelper.GenerateShortHexGuid(); - - if (Plugin.StaticConfig.DebugHttpRequestResponse) - { - Plugin.StaticLogger.LogDebug($"DispatchRequest.{requestId}: destination {webhook.Url}"); - } - else - { - Plugin.StaticLogger.LogDebug($"DispatchRequest.{requestId}: sending {byteArray.Length} bytes to Discord"); - } + Plugin.StaticLogger.LogDebug($"DispatchRequest.{requestId}: sending {byteArray.Length} bytes to Discord"); // Create a web request to send the payload to discord WebRequest request = WebRequest.Create(webhook.Url);