mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
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)
|
||||
}
|
||||
|
||||
if err != io.EOF {
|
||||
l.Warnf("Connection to %s closed: %v", node, err)
|
||||
} else if _, ok := err.(ClusterConfigMismatch); ok {
|
||||
// EOFs (disconnect) are usually nothing to worry about
|
||||
if err != io.EOF && err != io.ErrUnexpectedEOF {
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user