command/fix: log fixer to run

This commit is contained in:
Mitchell Hashimoto 2013-08-08 17:12:04 -07:00
parent 64ecc5cad7
commit 4ddb4ab8d1
1 changed files with 2 additions and 0 deletions

View File

@ -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 {
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))