Commit 6359245e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

communicator/ssh: clearer logging [GH-699]

parent 7069f8af
......@@ -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)
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment