Updates to Elastic logging
This commit is contained in:
@@ -22,7 +22,7 @@ namespace PluralKit.Bot
|
||||
_db = db;
|
||||
_repo = repo;
|
||||
_clock = clock;
|
||||
_logger = logger;
|
||||
_logger = logger.ForContext<CommandMessageService>();
|
||||
}
|
||||
|
||||
public async Task RegisterMessage(ulong messageId, ulong authorId)
|
||||
|
@@ -71,7 +71,7 @@ namespace PluralKit.Bot
|
||||
public async Task<Webhook> InvalidateAndRefreshWebhook(ulong channelId, Webhook webhook)
|
||||
{
|
||||
// note: webhook.ChannelId may not be the same as channelId >.>
|
||||
_logger.Information("Refreshing webhook for channel {Channel}", webhook.ChannelId);
|
||||
_logger.Debug("Refreshing webhook for channel {Channel}", webhook.ChannelId);
|
||||
|
||||
_webhooks.TryRemove(webhook.ChannelId, out _);
|
||||
return await GetWebhook(channelId);
|
||||
|
Reference in New Issue
Block a user