Refactor code to fix incorrect logger reference

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.
This commit is contained in:
Sipke Schoorstra 2024-05-31 16:46:03 +02:00
parent efbfe8ea9a
commit 038d29b792

View file

@ -73,7 +73,7 @@ public class DefaultTriggerScheduler(IWorkflowScheduler workflowScheduler, ISyst
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;
}