Don't whine about unexpected EOFs
This commit is contained in:
parent
a6eb690e31
commit
e6f04ed238
@ -370,10 +370,11 @@ func (m *Model) Close(node string, err error) {
|
|||||||
l.Debugf("%s: %v", node, err)
|
l.Debugf("%s: %v", node, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != io.EOF {
|
// EOFs (disconnect) are usually nothing to worry about
|
||||||
l.Warnf("Connection to %s closed: %v", node, err)
|
if err != io.EOF && err != io.ErrUnexpectedEOF {
|
||||||
} else if _, ok := err.(ClusterConfigMismatch); ok {
|
|
||||||
l.Warnf("Connection to %s closed: %v", node, err)
|
l.Warnf("Connection to %s closed: %v", node, err)
|
||||||
|
} else if debug {
|
||||||
|
l.Debugln("Connection to %s closed: %v", node, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cid := m.cm.Get(node)
|
cid := m.cm.Get(node)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user