command/fix: log fixer to run

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

View File

@ -6,6 +6,7 @@ import (
"flag"
"fmt"
"github.com/mitchellh/packer/packer"
"log"
"os"
"strings"
)
@ -61,6 +62,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
panic("fixer not found: " + name)
}
log.Printf("Running fixer: %s", name)
input, err = fixer.Fix(input)
if err != nil {
env.Ui().Error(fmt.Sprintf("Error fixing: %s", err))