Skip to content

Commit

Permalink
Merge pull request #55 from minamijoyo/log-terraform-command-before-run
Browse files Browse the repository at this point in the history
Log terraform command before run
  • Loading branch information
minamijoyo authored Nov 24, 2021
2 parents 9e669b1 + c0f52c0 commit 30ad16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfexec/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func (e *executor) NewCommandContext(ctx context.Context, name string, args ...s

// Run executes a command.
func (e *executor) Run(cmd Command) error {
err := cmd.Run()
log.Printf("[DEBUG] [executor@%s]$ %s", e.dir, strings.Join(cmd.Args(), " "))
err := cmd.Run()
log.Printf("[TRACE] [executor@%s] cmd=%s ", e.dir, spew.Sdump(cmd))
if err != nil {
log.Printf("[DEBUG] [executor@%s] failed to run command: %s", e.dir, spew.Sdump(err))
Expand Down

0 comments on commit 30ad16b

Please sign in to comment.