From 7779d97ca5ea285d945c6472c20843b8aac86706 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Fri, 12 Oct 2018 20:20:57 -0700 Subject: [PATCH] Log on every reconnect. --- zfs_replication_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zfs_replication_exporter.go b/zfs_replication_exporter.go index 58b30aa..05fed21 100644 --- a/zfs_replication_exporter.go +++ b/zfs_replication_exporter.go @@ -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)