From 23a408c572c4feba0b9f9d660e6064e20fc34447 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Mon, 27 Mar 2017 13:04:59 +0900 Subject: [PATCH] More logging --- server/peers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/peers.py b/server/peers.py index 0c70fc0..75ef51d 100644 --- a/server/peers.py +++ b/server/peers.py @@ -313,10 +313,12 @@ class PeerManager(util.LoggedClass): async def on_add_peer(self, features, source_info): '''Add a peer (but only if the peer resolves to the source).''' if not source_info: + self.log_info('ignored add_peer request: no source info') return False source = source_info[0] peers = Peer.peers_from_features(features, source) if not peers: + self.log_info('ignored add_peer request: no peers given') return False # Just look at the first peer, require it