feat: more log context

This commit is contained in:
sam 2024-11-27 15:48:30 +01:00
parent 4047df8610
commit 7749c9d9e2
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
21 changed files with 159 additions and 15 deletions

View file

@ -35,6 +35,8 @@ public class ChannelDeleteResponder(
public async Task<Result> RespondAsync(IChannelDelete evt, CancellationToken ct = default)
{
using var __ = LogUtils.Enrich(evt);
if (!evt.GuildID.IsDefined())
{
_logger.Debug("Deleted channel {ChannelId} is not in a guild", evt.ID);