packer/plugin: Extra logging statements
This commit is contained in:
parent
69883d1abe
commit
b69e983474
|
@ -218,6 +218,8 @@ func (c *Client) Start() (address string, err error) {
|
||||||
cmd.Env = append(cmd.Env, env...)
|
cmd.Env = append(cmd.Env, env...)
|
||||||
cmd.Stderr = stderr
|
cmd.Stderr = stderr
|
||||||
cmd.Stdout = stdout
|
cmd.Stdout = stdout
|
||||||
|
|
||||||
|
log.Printf("Starting plugin: %s %#v", cmd.Path, cmd.Args)
|
||||||
err = cmd.Start()
|
err = cmd.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
@ -250,6 +252,7 @@ func (c *Client) Start() (address string, err error) {
|
||||||
timeout := time.After(c.config.StartTimeout)
|
timeout := time.After(c.config.StartTimeout)
|
||||||
|
|
||||||
// Start looking for the address
|
// Start looking for the address
|
||||||
|
log.Println("Waiting for RPC address for: %s", cmd.Path)
|
||||||
for done := false; !done; {
|
for done := false; !done; {
|
||||||
select {
|
select {
|
||||||
case <-timeout:
|
case <-timeout:
|
||||||
|
|
Loading…
Reference in New Issue