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:
parent
efbfe8ea9a
commit
038d29b792
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue