From 07449a78013dd67968e340589841293a201c6ad2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 14 Jul 2013 21:07:32 +0900 Subject: [PATCH] communicator/ssh: improved logging --- communicator/ssh/communicator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/communicator/ssh/communicator.go b/communicator/ssh/communicator.go index 11b691167..dacd46807 100644 --- a/communicator/ssh/communicator.go +++ b/communicator/ssh/communicator.go @@ -192,6 +192,7 @@ func (c *comm) newSession() (*ssh.Session, error) { log.Println("opening new ssh session") session, err := c.client.NewSession() if err != nil { + log.Printf("ssh session open error: '%s', attempting reconnect", err) if err := c.reconnect(); err != nil { return nil, err }