Skip to content

Commit

Permalink
fix: don't both trying to log webhook url, too sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
nwesterhausen committed Oct 30, 2024
1 parent 6647822 commit 05e18e8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions DiscordConnector/DiscordApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 05e18e8

Please sign in to comment.