Skip to content

Commit

Permalink
Update error message to include job name
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Jul 26, 2024
1 parent 8d4f35c commit a6b0ca1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a6b0ca1

Please sign in to comment.