Skip to content

Commit

Permalink
add debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
matheuscscp committed Jul 27, 2023
1 parent 312426b commit dddf5a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/controller/imageupdateautomation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,12 @@ func (r *ImageUpdateAutomationReconciler) Reconcile(ctx context.Context, req ctr
}

// construct the commit message from template and values
message, err := templateMsg(gitSpec.Commit.MessageTemplate, &templateValues)
template := gitSpec.Commit.MessageTemplate
message, err := templateMsg(template, &templateValues)
if err != nil {
return failWithError(err)
}
debuglog.Info("commit message templated", "template", template, "commitMessage", message)

var rev string
if len(templateValues.Updated.Files) > 0 {
Expand Down

0 comments on commit dddf5a9

Please sign in to comment.