better representation of kademliapeer on debug logs
This commit is contained in:
parent
868a620e91
commit
8b1009161a
1 changed files with 3 additions and 0 deletions
|
@ -190,3 +190,6 @@ class KademliaPeer:
|
||||||
|
|
||||||
def compact_ip(self):
|
def compact_ip(self):
|
||||||
return make_compact_ip(self.address)
|
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})"
|
||||||
|
|
Loading…
Reference in a new issue