Log on every reconnect.

This commit is contained in:
Bill Thiede 2018-10-12 20:20:57 -07:00
parent af0d5e0618
commit 7779d97ca5

View File

@ -179,7 +179,6 @@ func main() {
h = userHost[idx+1:]
}
go func(user, host string) {
glog.Infof("Dialing %s@%s", user, host)
config := &ssh.ClientConfig{
User: user,
Auth: ams,
@ -191,6 +190,7 @@ func main() {
for {
if c == nil {
var err error
glog.Infof("Dialing %s@%s", user, host)
c, err = ssh.Dial("tcp", host, config)
if err != nil {
glog.Errorf("Error dialing %q: %v", host, err)