Skip to content

Commit

Permalink
Refactor code to fix incorrect logger reference
Browse files Browse the repository at this point in the history
In the DefaultTriggerScheduler.cs file, a wrong reference to _logger was corrected. It caused issues during attempts to log a warning when the 'cronExpression' parameter is empty. Now the correct local logger object is used.
  • Loading branch information
sfmskywalker committed May 31, 2024
1 parent efbfe8e commit 038d29b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task ScheduleAsync(IEnumerable<StoredTrigger> triggers, Cancellatio

if (string.IsNullOrWhiteSpace(cronExpression))
{
_logger.LogWarning("Cron expression is empty. TriggerId: {TriggerId}. Skipping scheduling of this trigger", trigger.Id);
logger.LogWarning("Cron expression is empty. TriggerId: {TriggerId}. Skipping scheduling of this trigger", trigger.Id);
continue;
}

Expand Down

0 comments on commit 038d29b

Please sign in to comment.