Commit bfbc3e37 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/build: add more logging

parent d5cfa42e
......@@ -137,6 +137,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
log.Printf("Starting build run: %s", b.Name())
artifacts[b.Name()] = b.Run(buildUis[b.Name()])
log.Printf("Build finished: %s", b.Name())
}(b)
}
......@@ -163,6 +164,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
log.Printf("Stopping build: %s", b.Name())
b.Cancel()
log.Printf("Build cancelled: %s", b.Name())
}(b)
}
......@@ -171,8 +173,12 @@ func (c Command) Run(env packer.Environment, args []string) int {
// Wait for both the builds to complete and the interrupt handler,
// if it is interrupted.
log.Printf("Waiting on builds to complete...")
wg.Wait()
log.Printf("Builds completed. Waiting on interrupt barrier...")
interruptWg.Wait()
log.Printf("Interrupt barrier passed.")
if interrupted {
env.Ui().Say("Cleanly cancelled builds after being interrupted.")
......
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