From 05f876e61c6019483452e1f072976447faffda8d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 11 Jul 2019 21:48:44 -0400 Subject: [PATCH] stopping service log --- src/EventsProcessor/AzureQueueHostedService.cs | 1 + src/Notifications/AzureQueueHostedService.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/EventsProcessor/AzureQueueHostedService.cs b/src/EventsProcessor/AzureQueueHostedService.cs index 07a274cf4a..8be3642f28 100644 --- a/src/EventsProcessor/AzureQueueHostedService.cs +++ b/src/EventsProcessor/AzureQueueHostedService.cs @@ -46,6 +46,7 @@ namespace Bit.EventsProcessor { return; } + _logger.LogWarning("Stopping service."); _cts.Cancel(); await Task.WhenAny(_executingTask, Task.Delay(-1, cancellationToken)); cancellationToken.ThrowIfCancellationRequested(); diff --git a/src/Notifications/AzureQueueHostedService.cs b/src/Notifications/AzureQueueHostedService.cs index 79a05292ed..ae4ba2e2da 100644 --- a/src/Notifications/AzureQueueHostedService.cs +++ b/src/Notifications/AzureQueueHostedService.cs @@ -44,6 +44,7 @@ namespace Bit.Notifications { return; } + _logger.LogWarning("Stopping service."); _cts.Cancel(); await Task.WhenAny(_executingTask, Task.Delay(-1, cancellationToken)); cancellationToken.ThrowIfCancellationRequested();