8000 fix(api): improve logs on postTakeWorkflowJobHandler errors (#4385) · ovh/cds@0461791 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 0461791

Browse files
fsaminsguiheux
authored andcommitted
fix(api): improve logs on postTakeWorkflowJobHandler errors (#4385)
1 parent 6977b79 commit 0461791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/api/workflow_queue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (api *API) postTakeWorkflowJobHandler() service.Handler {
9090
}
9191

9292
if !isGroupOK {
93-
return sdk.WrapError(sdk.ErrForbidden, "This worker is not authorized to take this job:%d execGroups:%+v", id, pbj.ExecGroups)
93+
return sdk.WrapError(sdk.ErrForbidden, "Worker %s (%s) is not authorized to take this job:%d execGroups:%+v", getWorker(ctx).Name, workerModel, id, pbj.ExecGroups)
9494
}
9595

9696
pbji := &sdk.WorkflowNodeJobRunData{}

0 commit comments

Comments
 (0)
0