diff --git a/src/Foundatio.Extensions.Hosting/Jobs/ScheduledJobRunner.cs b/src/Foundatio.Extensions.Hosting/Jobs/ScheduledJobRunner.cs index a6c88214..15c413e9 100644 --- a/src/Foundatio.Extensions.Hosting/Jobs/ScheduledJobRunner.cs +++ b/src/Foundatio.Extensions.Hosting/Jobs/ScheduledJobRunner.cs @@ -119,7 +119,7 @@ public async Task StartAsync(CancellationToken cancellationToken = default) catch (Exception ex) { if (_logger.IsEnabled(LogLevel.Error)) - _logger.LogError(ex, "Error running job instance: {Message}", ex.Message); + _logger.LogError(ex, "Error running scheduled job ({JobName}): {Message}", Options.Name, ex.Message); throw; }