communicator/ssh: clearer logging [GH-699]
This commit is contained in:
parent
7069f8afe1
commit
6359245ef8
|
@ -118,6 +118,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) {
|
|||
go func() {
|
||||
failures := 0
|
||||
for {
|
||||
log.Printf("[DEBUG] Background SSH connection checker is testing")
|
||||
dummy, err := c.config.Connection()
|
||||
if err == nil {
|
||||
failures = 0
|
||||
|
|
|
@ -11,7 +11,6 @@ import (
|
|||
// is suitable for use with the SSH communicator configuration.
|
||||
func ConnectFunc(network, addr string) func() (net.Conn, error) {
|
||||
return func() (net.Conn, error) {
|
||||
log.Printf("Opening conn for SSH to %s %s", network, addr)
|
||||
return net.DialTimeout(network, addr, 15*time.Second)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue