diff --git a/Source/EventFlow.Hangfire/Integration/HangfireJobScheduler.cs b/Source/EventFlow.Hangfire/Integration/HangfireJobScheduler.cs index 7b34427e6..6f375027a 100644 --- a/Source/EventFlow.Hangfire/Integration/HangfireJobScheduler.cs +++ b/Source/EventFlow.Hangfire/Integration/HangfireJobScheduler.cs @@ -98,7 +98,7 @@ private Task ScheduleAsync( var id = schedule(jobDefinition, json); - _logger.LogInformation($"Scheduled job '{id}' with name '{jobDefinition.Name}' in Hangfire"); + _logger.LogInformation("Scheduled job {JobId} with name {JobDefinitionName} in Hangfire", id, jobDefinition.Name); return Task.FromResult(new HangfireJobId(id)); }