From 752cfdcb6770945ca554d20392d1545cf7a59edd Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 16 Sep 2014 11:11:54 +0100 Subject: [PATCH] Make message for UnknownPeersError more meaningful --- connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.go b/connection.go index 68c337ee..08168870 100644 --- a/connection.go +++ b/connection.go @@ -481,7 +481,7 @@ func (conn *LocalConnection) receiveTCP(decoder *gob.Decoder, usingPassword bool } else if msg[0] == ProtocolUpdate { newUpdate, err := conn.Router.Peers.ApplyUpdate(msg[1:], conn.Router) if _, ok := err.(UnknownPeersError); err != nil && ok { - checkWarn(err) + log.Println("Update from", conn.RemoteTCPAddr(), "contained unknown peer; requesting full update") conn.SendTCP(ProtocolFetchAllByte) continue } else if conn.CheckFatal(err) != nil {