Skip to content

Commit

Permalink
Merge pull request #517 from displague/fix-worker-error-detail
Browse files Browse the repository at this point in the history
fix With context on ProcessWorkflowActions error logging
  • Loading branch information
tstromberg authored Aug 28, 2021
2 parents cf4a442 + cd5e37a commit cdf8a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tink-worker/internal/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func (w *Worker) ProcessWorkflowActions(ctx context.Context, workerID string, ca
} else {
actionStatus.ActionStatus = pb.State_STATE_FAILED
}
l.With("actionStatus", actionStatus.ActionStatus.String())
l = l.With("actionStatus", actionStatus.ActionStatus.String())
l.Error(err)
if reportErr := w.reportActionStatus(ctx, actionStatus); reportErr != nil {
exitWithGrpcError(reportErr, l)
Expand Down

0 comments on commit cdf8a8f

Please sign in to comment.