Commit d89463b1 authored by Julien Muchembled's avatar Julien Muchembled

Log more information when trying to (re)bootstrap

parent 8e9f72fe
...@@ -246,6 +246,8 @@ class TunnelManager(object): ...@@ -246,6 +246,8 @@ class TunnelManager(object):
self._countRoutes() self._countRoutes()
disconnected = self._disconnected disconnected = self._disconnected
if disconnected is not None: if disconnected is not None:
logging.info("No route to registry (%u neighbours, %u distant"
" peers)", len(disconnected), len(distant_peers))
# We aren't the registry node and we have no tunnel to or from it, # We aren't the registry node and we have no tunnel to or from it,
# so it looks like we are not connected to the network, and our # so it looks like we are not connected to the network, and our
# neighbours are in the same situation. # neighbours are in the same situation.
...@@ -290,6 +292,8 @@ class TunnelManager(object): ...@@ -290,6 +292,8 @@ class TunnelManager(object):
bootstrap = True bootstrap = True
for peer, address in self._peer_db.getPeerList(): for peer, address in self._peer_db.getPeerList():
if peer not in disconnected: if peer not in disconnected:
logging.info("Try to bootstrap using peer %u/%u",
int(peer, 2), len(peer))
bootstrap = False bootstrap = False
if self._makeTunnel(peer, address): if self._makeTunnel(peer, address):
new += 1 new += 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment