Log webhook send progress

This commit is contained in:
Ske 2019-08-12 04:16:17 +02:00
parent c68ce1bdd3
commit 1b32cd8b6d

View File

@ -159,6 +159,8 @@ namespace PluralKit.Bot
// TODO: DiscordWebhookClient's ctor does a call to GetWebhook that may be unnecessary, see if there's a way to do this The Hard Way :tm:
// TODO: this will probably crash if there are multiple consecutive failures, perhaps have a loop instead?
_logger.Debug("Instantiating webhook client");
DiscordWebhookClient client;
try
{
@ -173,6 +175,8 @@ namespace PluralKit.Bot
client = new DiscordWebhookClient(webhook);
}
_logger.Debug("Invoking webhook");
// TODO: clean this entire block up
using (client)
{