From 1bc9b8d842a4d4ce28f6dc8d21361d60a827e678 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sat, 1 Apr 2023 09:24:26 -0700 Subject: [PATCH] expanded logging on DiscordNotificationJob.cs (#17) --- Newsbot.Collector.Services/Jobs/DiscordNotificationJob.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Newsbot.Collector.Services/Jobs/DiscordNotificationJob.cs b/Newsbot.Collector.Services/Jobs/DiscordNotificationJob.cs index 80f1035..6ed4827 100644 --- a/Newsbot.Collector.Services/Jobs/DiscordNotificationJob.cs +++ b/Newsbot.Collector.Services/Jobs/DiscordNotificationJob.cs @@ -100,7 +100,10 @@ public class DiscordNotificationJob catch (Exception e) { _logger.Error($"Failed to post message to Discord. {e}"); - continue; + _logger.Debug($"Queue Record: {request.ID}"); + _logger.Debug($"Article: {articleDetails.ID}"); + _logger.Debug($"Source: {sourceDetails.ID}"); + _logger.Debug($"Subscription: {sub.ID}"); } Thread.Sleep(3000);