feat: more log context
This commit is contained in:
parent
4047df8610
commit
7749c9d9e2
21 changed files with 159 additions and 15 deletions
|
|
@ -17,7 +17,6 @@ using Catalogger.Backend.Cache.InMemoryCache;
|
|||
using Catalogger.Backend.Database.Repositories;
|
||||
using Catalogger.Backend.Extensions;
|
||||
using Catalogger.Backend.Services;
|
||||
using Microsoft.Extensions.Logging.Configuration;
|
||||
using Remora.Discord.API.Abstractions.Gateway.Events;
|
||||
using Remora.Discord.API.Abstractions.Objects;
|
||||
using Remora.Discord.Extensions.Embeds;
|
||||
|
|
@ -36,6 +35,8 @@ public class ChannelCreateResponder(
|
|||
{
|
||||
public async Task<Result> RespondAsync(IChannelCreate ch, CancellationToken ct = default)
|
||||
{
|
||||
using var _ = LogUtils.Enrich(ch);
|
||||
|
||||
if (!ch.GuildID.IsDefined())
|
||||
return Result.Success;
|
||||
channelCache.Set(ch);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue