mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
Add Elastic-bound logging of (almost) all database update events
This commit is contained in:
parent
8d27148bdf
commit
9955dc29f9
11 changed files with 182 additions and 45 deletions
|
|
@ -175,14 +175,14 @@ namespace PluralKit.Bot
|
|||
|
||||
private async Task UpdatePeriodic()
|
||||
{
|
||||
_logger.Information("Running once-per-minute scheduled tasks");
|
||||
_logger.Debug("Running once-per-minute scheduled tasks");
|
||||
|
||||
await UpdateBotStatus();
|
||||
|
||||
// Collect some stats, submit them to the metrics backend
|
||||
await _collector.CollectStats();
|
||||
await Task.WhenAll(((IMetricsRoot) _metrics).ReportRunner.RunAllAsync());
|
||||
_logger.Information("Submitted metrics to backend");
|
||||
_logger.Debug("Submitted metrics to backend");
|
||||
}
|
||||
|
||||
private async Task UpdateBotStatus(DiscordClient specificShard = null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue