diff --git a/Catalogger.Backend/Services/WebhookExecutorService.cs b/Catalogger.Backend/Services/WebhookExecutorService.cs index 78f12f5..6b73cb4 100644 --- a/Catalogger.Backend/Services/WebhookExecutorService.cs +++ b/Catalogger.Backend/Services/WebhookExecutorService.cs @@ -323,7 +323,13 @@ public class WebhookExecutorService( ); if (!channelCache.TryGet(channelId, out var channel)) + { + _logger.Verbose( + "Channel with ID {ChannelId} is not cached, returning default log channel", + channelId + ); return GetDefaultLogChannel(guild, logChannelType); + } Snowflake? categoryId; if ( @@ -401,7 +407,13 @@ public class WebhookExecutorService( } if (!channelCache.TryGet(channelId.Value, out var channel)) - return null; + { + _logger.Verbose( + "Channel with ID {ChannelId} is not cached, returning default log channel", + channelId + ); + return GetDefaultLogChannel(guild, logChannelType); + } Snowflake? categoryId; if (