1
0
mirror of https://github.com/bitwarden/server synced 2025-12-06 00:03:34 +00:00

log admin job tasks

This commit is contained in:
Kyle Spearrin
2019-08-04 20:02:31 -04:00
parent 00d1bbf0ee
commit aae60aaca2
3 changed files with 11 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Threading.Tasks;
using Bit.Core;
using Bit.Core.Jobs;
using Bit.Core.Repositories;
using Microsoft.Extensions.Logging;
@@ -21,7 +22,9 @@ namespace Bit.Admin.Jobs
protected async override Task ExecuteJobAsync(IJobExecutionContext context)
{
_logger.LogInformation(Constants.BypassFiltersEventId, "Execute job task: DeleteExpiredGrantsAsync");
await _maintenanceRepository.DeleteExpiredGrantsAsync();
_logger.LogInformation(Constants.BypassFiltersEventId, "Finished job task: DeleteExpiredGrantsAsync");
}
}
}