verbose logging

This commit is contained in:
Jack Robison 2019-01-29 13:08:11 -05:00
parent adf378b6e9
commit 8f7cf0b38f
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -232,10 +232,7 @@ class Node:
async with self.peer_search_junction(self.protocol.node_id, max_results=max_results,
bottom_out_limit=bottom_out_limit) as junction:
async for peers in junction:
log.info("peer search: %s", peers)
accumulated.extend(peers)
log.info("junction done")
log.info("context done")
distance = Distance(node_id)
accumulated.sort(key=lambda peer: distance(peer.node_id))
return accumulated[:count]