Skip to content

Commit

Permalink
Remove repetitive log statement
Browse files Browse the repository at this point in the history
The log being removed seems is duplicated each time evalContext is
called, which seems like an unneeded debug log especially since the
iterationID information is outputted in various time in the debug logs.
  • Loading branch information
nywilken committed Aug 7, 2023
1 parent 2503890 commit 9b6c1f2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hcl2template/types.packer_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ func (cfg *PackerConfig) EvalContext(ctx BlockContext, variables map[string]cty.

iterID, ok := cfg.HCPVars["iterationID"]
if ok {
log.Printf("iterationID set: %q", iterID.AsString())

ectx.Variables[packerAccessor] = cty.ObjectVal(map[string]cty.Value{
"version": cty.StringVal(cfg.CorePackerVersionString),
"iterationID": iterID,
Expand Down

0 comments on commit 9b6c1f2

Please sign in to comment.