dht_crawler: fix logging for missing ports
This commit is contained in:
parent
b5c390ca04
commit
cc64789e96
1 changed files with 4 additions and 2 deletions
|
@ -217,10 +217,12 @@ class Crawler:
|
||||||
if response:
|
if response:
|
||||||
self.working_streams_metric.labels("global").inc()
|
self.working_streams_metric.labels("global").inc()
|
||||||
log.info("Found responsive peer for %s: %s:%d(%d)",
|
log.info("Found responsive peer for %s: %s:%d(%d)",
|
||||||
sd_hash.hex()[:8], blob_peer.address, blob_peer.udp_port, blob_peer.tcp_port)
|
sd_hash.hex()[:8], blob_peer.address,
|
||||||
|
blob_peer.udp_port or -1, blob_peer.tcp_port or -1)
|
||||||
else:
|
else:
|
||||||
log.info("Found dead peer for %s: %s:%d(%d)",
|
log.info("Found dead peer for %s: %s:%d(%d)",
|
||||||
sd_hash.hex()[:8], blob_peer.address, blob_peer.udp_port, blob_peer.tcp_port)
|
sd_hash.hex()[:8], blob_peer.address,
|
||||||
|
blob_peer.udp_port or -1, blob_peer.tcp_port or -1)
|
||||||
await asyncio.sleep(.5)
|
await asyncio.sleep(.5)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue