Skip to content

Commit 46acbf7

Browse files
committed
Re-arrange logger creation
1 parent b2d9205 commit 46acbf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/redis/workflow.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ func (rb *redisBackend) GetWorkflowTask(ctx context.Context) (*task.Workflow, er
103103
}
104104

105105
if instanceState.State == backend.WorkflowStateFinished {
106-
// This should never happen. For now, log information and then panic.
107106
l := rb.Logger().With(
108107
"task_id", instanceTask.ID,
109108
"instance_id", instanceState.Instance.InstanceID)
109+
110+
// This should never happen. For now, log information and then panic.
110111
l.Error("got workflow task for finished workflow instance")
111112

112113
// Log events that lead to this task

0 commit comments

Comments
 (0)