diff --git a/communicator/ssh/communicator.go b/communicator/ssh/communicator.go index 3af09e1d0..6f729e9f6 100644 --- a/communicator/ssh/communicator.go +++ b/communicator/ssh/communicator.go @@ -87,6 +87,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) { } } + log.Printf("remote command exited with '%d': %s", exitStatus, cmd.Command) cmd.SetExited(exitStatus) }()