mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 18:20:11 +00:00
Log webhook send progress
This commit is contained in:
parent
c68ce1bdd3
commit
1b32cd8b6d
1 changed files with 4 additions and 0 deletions
|
|
@ -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: 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?
|
// TODO: this will probably crash if there are multiple consecutive failures, perhaps have a loop instead?
|
||||||
|
|
||||||
|
_logger.Debug("Instantiating webhook client");
|
||||||
DiscordWebhookClient client;
|
DiscordWebhookClient client;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -172,6 +174,8 @@ namespace PluralKit.Bot
|
||||||
webhook = await _webhookCache.InvalidateAndRefreshWebhook(webhook);
|
webhook = await _webhookCache.InvalidateAndRefreshWebhook(webhook);
|
||||||
client = new DiscordWebhookClient(webhook);
|
client = new DiscordWebhookClient(webhook);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_logger.Debug("Invoking webhook");
|
||||||
|
|
||||||
// TODO: clean this entire block up
|
// TODO: clean this entire block up
|
||||||
using (client)
|
using (client)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue