From 1b32cd8b6d6ed71528d7c07304f150c3299cb872 Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 12 Aug 2019 04:16:17 +0200 Subject: [PATCH] Log webhook send progress --- PluralKit.Bot/Services/ProxyService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PluralKit.Bot/Services/ProxyService.cs b/PluralKit.Bot/Services/ProxyService.cs index 19f16e99..eddf13a1 100644 --- a/PluralKit.Bot/Services/ProxyService.cs +++ b/PluralKit.Bot/Services/ProxyService.cs @@ -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 { @@ -172,6 +174,8 @@ namespace PluralKit.Bot webhook = await _webhookCache.InvalidateAndRefreshWebhook(webhook); client = new DiscordWebhookClient(webhook); } + + _logger.Debug("Invoking webhook"); // TODO: clean this entire block up using (client)