From 48eddc37214e4af38b0b8b59f15b86925f6f5493 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 10 Jan 2016 04:09:28 -0500 Subject: [PATCH] Catch a different form of etcd disconnect --- etcd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etcd.go b/etcd.go index 707145ce..98c4066a 100644 --- a/etcd.go +++ b/etcd.go @@ -160,6 +160,9 @@ func (etcdO *EtcdWObject) EtcdWatch() chan etcdMsg { time.Sleep(time.Duration(t) * time.Millisecond) // sleep for t ms } else if e.Error() == "unexpected EOF" { + log.Printf("Etcd: Unexpected disconnect...") + + } else if e.Error() == "EOF" { log.Printf("Etcd: Disconnected...") } else if strings.HasPrefix(e.Error(), "unsupported protocol scheme") {