communicator/ssh: clearer logging [GH-699]

This commit is contained in:
Mitchell Hashimoto 2013-12-10 18:10:15 -08:00
parent 7069f8afe1
commit 6359245ef8
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -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)
}
}