feat: more log context
This commit is contained in:
parent
4047df8610
commit
7749c9d9e2
21 changed files with 159 additions and 15 deletions
|
|
@ -44,6 +44,8 @@ public class GuildCreateResponder(
|
|||
|
||||
public async Task<Result> RespondAsync(IGuildCreate evt, CancellationToken ct = default)
|
||||
{
|
||||
using var _ = LogUtils.Enrich(evt);
|
||||
|
||||
ulong guildId;
|
||||
string? guildName = null;
|
||||
if (evt.Guild.TryPickT0(out var guild, out var unavailableGuild))
|
||||
|
|
@ -101,6 +103,8 @@ public class GuildCreateResponder(
|
|||
|
||||
public async Task<Result> RespondAsync(IGuildDelete evt, CancellationToken ct = default)
|
||||
{
|
||||
using var _ = LogUtils.Enrich(evt);
|
||||
|
||||
if (evt.IsUnavailable.OrDefault(false))
|
||||
{
|
||||
_logger.Debug("Guild {GuildId} became unavailable", evt.ID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue