Skip to content

Commit

Permalink
feat: add currentStackDepth to executeTemplate log msg
Browse files Browse the repository at this point in the history
Signed-off-by: Roel Arents <roel.arents@kadaster.nl>
  • Loading branch information
roelarents committed Jan 4, 2024
1 parent 9e17f4c commit ab4e3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ type executeTemplateOpts struct {
// nodeName is the name to be used as the name of the node, and boundaryID indicates which template
// boundary this node belongs to.
func (woc *wfOperationCtx) executeTemplate(ctx context.Context, nodeName string, orgTmpl wfv1.TemplateReferenceHolder, tmplCtx *templateresolution.Context, args wfv1.Arguments, opts *executeTemplateOpts) (*wfv1.NodeStatus, error) {
woc.log.Debugf("Evaluating node %s: template: %s, boundaryID: %s", nodeName, common.GetTemplateHolderString(orgTmpl), opts.boundaryID)
woc.log.Debugf("Evaluating node %s: template: %s, boundaryID: %s, currentStackDepth: %v", nodeName, common.GetTemplateHolderString(orgTmpl), opts.boundaryID, woc.currentStackDepth)

// Set templateScope from which the template resolution starts.
templateScope := tmplCtx.GetTemplateScope()
Expand Down

0 comments on commit ab4e3fb

Please sign in to comment.