From 6b42b3b32945a343e5b8f20afdc6d2974a841c32 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 18 Jun 2013 21:10:34 -0700 Subject: [PATCH] command/validate: better logging --- command/validate/commang.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/validate/commang.go b/command/validate/commang.go index 96f6fb176..bb4200acb 100644 --- a/command/validate/commang.go +++ b/command/validate/commang.go @@ -66,6 +66,7 @@ func (c Command) Run(env packer.Environment, args []string) int { buildNames := tpl.BuildNames() builds := make([]packer.Build, 0, len(buildNames)) for _, buildName := range buildNames { + log.Printf("Creating build from template for: %s", buildName) build, err := tpl.Build(buildName, components) if err != nil { errs = append(errs, fmt.Errorf("Build '%s': %s", buildName, err)) @@ -77,6 +78,7 @@ func (c Command) Run(env packer.Environment, args []string) int { // Check the configuration of all builds for _, b := range builds { + log.Printf("Preparing build: %s", b.Name()) err := b.Prepare() if err != nil { errs = append(errs, fmt.Errorf("Errors validating build '%s'. %s", b.Name(), err))