communicator/ssh: improved logging

pull/919/head
Mitchell Hashimoto 13 years ago
parent 387793b2d3
commit 07449a7801

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

Loading…
Cancel
Save