Commit 4ddb4ab8 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/fix: log fixer to run

parent 64ecc5ca
...@@ -6,6 +6,7 @@ import ( ...@@ -6,6 +6,7 @@ import (
"flag" "flag"
"fmt" "fmt"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"log"
"os" "os"
"strings" "strings"
) )
...@@ -61,6 +62,7 @@ func (c Command) Run(env packer.Environment, args []string) int { ...@@ -61,6 +62,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
panic("fixer not found: " + name) panic("fixer not found: " + name)
} }
log.Printf("Running fixer: %s", name)
input, err = fixer.Fix(input) input, err = fixer.Fix(input)
if err != nil { if err != nil {
env.Ui().Error(fmt.Sprintf("Error fixing: %s", err)) env.Ui().Error(fmt.Sprintf("Error fixing: %s", err))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment