feat: member add logs, improve meta command

This commit is contained in:
sam 2024-08-21 17:31:39 +02:00
parent f0cb5a9d03
commit 8f39d85486
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
12 changed files with 73 additions and 15 deletions

View file

@ -45,11 +45,11 @@ public class MetricsCollectionService(
public class BackgroundMetricsCollectionService(ILogger logger, MetricsCollectionService innerService) : BackgroundService
{
private readonly ILogger _logger = logger.ForContext<BackgroundMetricsCollectionService>();
protected override async Task ExecuteAsync(CancellationToken ct)
{
_logger.Information("Metrics are disabled, periodically collecting metrics manually");
using var timer = new PeriodicTimer(1.Minutes());
while (await timer.WaitForNextTickAsync(ct))
{