forked from LBRYCommunity/lbry-sdk
log bottom out of peer search in debug, show short key id for find value
This commit is contained in:
parent
0b2b10f759
commit
3876e0317d
1 changed files with 4 additions and 3 deletions
|
@ -351,9 +351,10 @@ class IterativeNodeFinder(IterativeFinder):
|
|||
if self.are_k_closest_peers_ready:
|
||||
self.put_result(self.active, True)
|
||||
elif self.bottom_out_count >= self.bottom_out_limit or self.iteration_count >= self.bottom_out_limit:
|
||||
log.info("peer search bottomed out.")
|
||||
log.debug("peer search bottomed out.")
|
||||
self.put_result(self.active, True)
|
||||
|
||||
|
||||
class IterativeValueFinder(IterativeFinder):
|
||||
def __init__(self, loop: asyncio.AbstractEventLoop, peer_manager: 'PeerManager',
|
||||
routing_table: 'TreeRoutingTable', protocol: 'KademliaProtocol', key: bytes,
|
||||
|
@ -420,10 +421,10 @@ class IterativeValueFinder(IterativeFinder):
|
|||
elif self.is_closest_peer_ready:
|
||||
self.bottom_out_count += 1
|
||||
if self.are_k_closest_peers_ready:
|
||||
log.info("blob peer search finished.")
|
||||
log.info("blob peer search finished for %s", self.key.hex()[:8])
|
||||
self.iteration_queue.put_nowait(None)
|
||||
elif self.bottom_out_count >= self.bottom_out_limit:
|
||||
log.info("blob peer search bottomed out")
|
||||
log.info("blob peer search bottomed out for %s", self.key.hex()[:8])
|
||||
self.iteration_queue.put_nowait(None)
|
||||
|
||||
def get_initial_result(self) -> typing.List['KademliaPeer']:
|
||||
|
|
Loading…
Reference in a new issue