From e56c987fdc4ebd919cfca424e5a1906620cf0a12 Mon Sep 17 00:00:00 2001 From: Eric Glanz Date: Tue, 31 Aug 2021 09:29:13 -0600 Subject: [PATCH] add info logging for new config options --- src/Worker.cs | 1 + src/appsettings.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Worker.cs b/src/Worker.cs index 98b74aa..4227cfe 100644 --- a/src/Worker.cs +++ b/src/Worker.cs @@ -34,6 +34,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken) _host.StopApplication(); } + _logger.LogInformation($"Using check interval of {_appConfig.Value.CheckInterval ?? 1000}ms, min packet rate {_appConfig.Value.MinPacketRate ?? 1}"); while (!stoppingToken.IsCancellationRequested) { try diff --git a/src/appsettings.json b/src/appsettings.json index 775c49d..9bcb1c0 100644 --- a/src/appsettings.json +++ b/src/appsettings.json @@ -13,7 +13,8 @@ ], "CallStartWebhook": "", "CallEndWebhook": "", - "DelayMs": 2000 + "CheckInterval": 2000, + "MinPacketRate": 1 }, "Provider": { "KnownNetworks": {