1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-27 13:05:23 +01:00

Starting informational with bypass

This commit is contained in:
Kyle Spearrin 2019-08-04 20:04:04 -04:00
parent aae60aaca2
commit f43e954a31

View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Bit.Core;
using Bit.Core.Models.Data;
using Bit.Core.Services;
using Microsoft.Extensions.Configuration;
@ -35,7 +36,7 @@ namespace Bit.EventsProcessor
public Task StartAsync(CancellationToken cancellationToken)
{
_logger.LogWarning("Starting service.");
_logger.LogInformation(Constants.BypassFiltersEventId, "Starting service.");
_cts = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken);
_executingTask = ExecuteAsync(_cts.Token);
return _executingTask.IsCompleted ? _executingTask : Task.CompletedTask;