samuel/go-zookeeper

Print EOF or nil error

Opened this issue · 0 comments

wrfly commented

go-zookeeper/zk/conn.go

Lines 510 to 512 in c4fab1a

if err != nil || c.logInfo {
c.logger.Printf("Send loop terminated: err=%v", err)
}

go-zookeeper/zk/conn.go

Lines 525 to 527 in c4fab1a

if err != io.EOF || c.logInfo {
c.logger.Printf("Recv loop terminated: err=%v", err)
}

I don't think it's OK to print the EOF error or nil error only because the logInfo flag, since the message won't help.