From bd5750fbe8b9873780b43a8e2f93ad886c78b84c Mon Sep 17 00:00:00 2001 From: Piper Merriam Date: Fri, 8 Mar 2019 13:57:51 -0700 Subject: [PATCH] Make bootnode listing in console output friendlier --- p2p/discovery.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/p2p/discovery.py b/p2p/discovery.py index 8b5ca92d08..5919d93698 100644 --- a/p2p/discovery.py +++ b/p2p/discovery.py @@ -403,7 +403,14 @@ def connection_made(self, transport: asyncio.BaseTransport) -> None: self.transport = cast(asyncio.DatagramTransport, transport) async def bootstrap(self) -> None: - self.logger.info("boostrapping with %s", self.bootstrap_nodes) + for node in self.bootstrap_nodes: + uri = node.uri() + pubkey, _, uri_tail = uri.partition('@') + pubkey_head = pubkey[:16] + pubkey_tail = pubkey[-8:] + self.logger.debug("full-bootnode: %s", uri) + self.logger.info("bootnode: %s...%s@%s", pubkey_head, pubkey_tail, uri_tail) + try: bonded = await asyncio.gather(*( self.bond(n)