From 8b1009161a3c2181ba0461c8166b96391b48e688 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 18 Feb 2022 18:51:08 -0300 Subject: [PATCH] better representation of kademliapeer on debug logs --- lbry/dht/peer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lbry/dht/peer.py b/lbry/dht/peer.py index 495f71eff..c5a9c9e84 100644 --- a/lbry/dht/peer.py +++ b/lbry/dht/peer.py @@ -190,3 +190,6 @@ class KademliaPeer: def compact_ip(self): return make_compact_ip(self.address) + + def __str__(self): + return f"{self.__class__.__name__}({self.node_id.hex()[:8]}@{self.address}:{self.udp_port}-{self.tcp_port})"