From 6359245ef8b47f282debca4246528e49096aa215 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 10 Dec 2013 18:10:15 -0800 Subject: [PATCH] communicator/ssh: clearer logging [GH-699] --- communicator/ssh/communicator.go | 1 + communicator/ssh/connect.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/communicator/ssh/communicator.go b/communicator/ssh/communicator.go index 17a616029..642b270dc 100644 --- a/communicator/ssh/communicator.go +++ b/communicator/ssh/communicator.go @@ -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 diff --git a/communicator/ssh/connect.go b/communicator/ssh/connect.go index 3ea91ce97..1408ff428 100644 --- a/communicator/ssh/connect.go +++ b/communicator/ssh/connect.go @@ -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) } }