From f79582786f1c4b04bbe60bd83844f7aa3e51c8ac Mon Sep 17 00:00:00 2001 From: Yvonnick Esnault Date: Thu, 9 Nov 2023 10:55:17 +0100 Subject: [PATCH] fix(engine): fix some logs --- engine/api/workflow/execute_node_job_run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/api/workflow/execute_node_job_run.go b/engine/api/workflow/execute_node_job_run.go index 1d17297931..81232ce162 100644 --- a/engine/api/workflow/execute_node_job_run.go +++ b/engine/api/workflow/execute_node_job_run.go @@ -138,13 +138,13 @@ func UpdateNodeJobRunStatus(ctx context.Context, db gorpmapper.SqlExecutorWithTx return nil, sdk.WrapError(err, "Cannot select status from workflow_node_run_job node job run %d", job.ID) } - log.Info(ctx, "job %d current status %q, new status %q", job.ID, status, currentStatus) + log.Info(ctx, "job %d current status %q, new status %q", job.ID, currentStatus, status) switch status { case sdk.StatusBuilding: if currentStatus != sdk.StatusWaiting { return nil, sdk.WithStack(fmt.Errorf("cannot update status of WorkflowNodeJobRun %d to %s, expected current status %s, got %s", - job.ID, status, sdk.StatusWaiting, currentStatus)) + job.ID, status, sdk.StatusWaiting, status)) } job.Start = time.Now() job.Status = status