Skip to content

Commit b261628

Browse files
Extend logging (add delay and period) (#20333)
1 parent a84d67e commit b261628

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Umbraco.Infrastructure/BackgroundJobs/RecurringBackgroundJobHostedServiceRunner.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public async Task StartAsync(CancellationToken cancellationToken)
3737
_logger.LogDebug("Creating background hosted service for {job}", jobName);
3838
IHostedService hostedService = _jobFactory(job);
3939

40-
_logger.LogInformation("Starting background hosted service for {job}", jobName);
40+
_logger.LogInformation("Starting a background hosted service for {job} with a delay of {delay}, running every {period}", jobName, job.Delay, job.Period);
41+
4142
await hostedService.StartAsync(cancellationToken).ConfigureAwait(false);
4243

4344
_hostedServices.Add(new NamedServiceJob(jobName, hostedService));

0 commit comments

Comments
 (0)