From ffd9ae7cc2a8be059d754caa3c1e03ceb94f4de2 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 13 Mar 2024 20:45:44 +0100 Subject: [PATCH] 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. --- .../Services/DefaultWorkflowDefinitionStorePopulator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowDefinitionStorePopulator.cs b/src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowDefinitionStorePopulator.cs index 3bdb8efdc..193b7a4e7 100644 --- a/src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowDefinitionStorePopulator.cs +++ b/src/modules/Elsa.Workflows.Runtime/Services/DefaultWorkflowDefinitionStorePopulator.cs @@ -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);