Log channel ID rather than name

This commit is contained in:
Ske 2019-07-18 17:29:09 +02:00
parent 0b4335ccaa
commit 1577eb7041

View File

@ -180,7 +180,7 @@ namespace PluralKit.Bot
messageId = await client.SendMessageAsync(text, username: username, avatarUrl: avatarUrl); messageId = await client.SendMessageAsync(text, username: username, avatarUrl: avatarUrl);
} }
_logger.Information("Invoked webhook {Webhook} in channel {Channel}", webhook.Id, webhook.Channel); _logger.Information("Invoked webhook {Webhook} in channel {Channel}", webhook.Id, webhook.ChannelId);
// Log it in the metrics // Log it in the metrics
_metrics.Measure.Meter.Mark(BotMetrics.MessagesProxied, "success"); _metrics.Measure.Meter.Mark(BotMetrics.MessagesProxied, "success");