Fix log message parameter name

Corrected the parameter token in the error log message to match the expected variable name, ensuring accurate logging when attempting to create duplicate workflows. This helps in diagnosing the root cause of issue #5033 more efficiently.
This commit is contained in:
Sipke Schoorstra 2024-03-13 20:45:44 +01:00
parent bb4a764eb8
commit ffd9ae7cc2

View file

@ -185,7 +185,7 @@ public class DefaultWorkflowDefinitionStorePopulator : IWorkflowDefinitionStoreP
// Temporary measure to try and find the root cause of https://github.com/elsa-workflows/elsa-core/issues/5033
if (existingDefinitionVersion is null
&& workflowDefinitionsToSave.Any(w => w.Id == workflowDefinition.Id))
_logger.LogError("Trying to create duplicate workflows with id {workflowId}", workflowDefinition.Id);
_logger.LogError("Trying to create duplicate workflows with id {WorkflowDefinitionId}", workflowDefinition.Id);
else
{
workflowDefinitionsToSave.Add(workflowDefinition);