fix: better logging

- verbose logging for log channel resolving logic
- don't LOG TOKENS TO THE CONSOLE OR SEQ
- actually log verbose logs to seq
- report open db connections to prometheus
This commit is contained in:
sam 2024-11-27 16:17:11 +01:00
parent 7749c9d9e2
commit 5157105c35
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
7 changed files with 109 additions and 50 deletions

View file

@ -29,6 +29,11 @@ public static class CataloggerMetrics
public static long MessageRateMinute { get; set; }
public static readonly Gauge DatabaseConnections = Metrics.CreateGauge(
"catalogger_open_database_connections",
"Number of open database connections"
);
public static readonly Gauge GuildsCached = Metrics.CreateGauge(
"catalogger_cache_guilds",
"Number of guilds in the cache"