From df4c844493f665b47a63d8adb9b234c905d3c27f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 30 Jul 2013 17:23:37 -0700 Subject: [PATCH] builder/amazon/chroot: log the exit code for the chroot communicator --- builder/amazon/chroot/communicator.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/amazon/chroot/communicator.go b/builder/amazon/chroot/communicator.go index b27c7c72d..e0bc5613f 100644 --- a/builder/amazon/chroot/communicator.go +++ b/builder/amazon/chroot/communicator.go @@ -45,6 +45,9 @@ func (c *Communicator) Start(cmd *packer.RemoteCmd) error { } } + log.Printf( + "Chroot executation ended with '%d': '%s'", + exitStatus, cmd.Command) cmd.SetExited(exitStatus) }()