Browse Source

HasStepsAllHandledIncludeCountersign debug log

xf 4 months ago
parent
commit
1ee6c8849e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/Hotline/FlowEngine/Workflows/WorkflowDomainService.cs

+ 4 - 4
src/Hotline/FlowEngine/Workflows/WorkflowDomainService.cs

@@ -2378,22 +2378,22 @@ namespace Hotline.FlowEngine.Workflows
         /// </summary>
         private bool HasStepsAllHandledIncludeCountersign(List<WorkflowStep> steps, WorkflowStep countersignStartStep)
         {
-            _logger.LogWarning($"StartCountersignId: {countersignStartStep.StartCountersignId}");
+            _logger.LogWarning($"wfId: {countersignStartStep.WorkflowId}, StartCountersignId: {countersignStartStep.StartCountersignId}");
             var innerSteps = steps.Where(d => d.CountersignId == countersignStartStep.StartCountersignId).ToList();
-            _logger.LogWarning($"innerSteps count: {innerSteps.Count}");
+            _logger.LogWarning($"wfId: {countersignStartStep.WorkflowId}, innerSteps count: {innerSteps.Count}");
             
             foreach (var step in innerSteps)
             {
                 if (step.Status != EWorkflowStepStatus.Handled)
                 {
-                    _logger.LogWarning($"step Id: {step.Id}, status: {step.Status}, step unhandle");
+                    _logger.LogWarning($"wfId: {countersignStartStep.WorkflowId}, step Id: {step.Id}, status: {step.Status}, result false");
                     return false;
                 }
                 
                 if (step.IsStartCountersign)
                     return HasStepsAllHandledIncludeCountersign(steps, step);
             }
-            _logger.LogWarning($"result true");
+            _logger.LogWarning($"wfId: {countersignStartStep.WorkflowId}, result true");
             return true;
         }