Refactor logging instances in DefaultTriggerScheduler.cs

This commit changes the reference to the logger instance in the DefaultTriggerScheduler class. It corrects the reference from a private instance to the correct instance 'logger'. Moreover, the string formatting of the second logger warning message has been updated for standardization.
This commit is contained in:
Sipke Schoorstra 2024-05-31 16:14:14 +02:00 committed by raymonddenhaan
parent 4a44037710
commit f52c163fe0

View file

@ -91,7 +91,7 @@ public class DefaultTriggerScheduler(IWorkflowScheduler workflowScheduler, ISyst
}
catch (FormatException ex)
{
logger.LogWarning(ex,"Cron expression format error: {exceptionMessage}. CronExpression: {cronExpression}", ex.Message, cronExpression);
logger.LogWarning(ex,"Cron expression format error: {ExceptionMessage}. CronExpression: {CronExpression}", ex.Message, cronExpression);
}
}
}