Log webhook send progress
This commit is contained in:
parent
c68ce1bdd3
commit
1b32cd8b6d
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user