communicator/ssh: improved logging
This commit is contained in:
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…
Reference in New Issue