Browse Source

wait_for_bootstrap: log node names with bootstrap statuses

Nick Mathewson 5 years ago
parent
commit
18af751e0b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      lib/chutney/TorNet.py

+ 5 - 1
lib/chutney/TorNet.py

@@ -647,6 +647,10 @@ class LocalNodeController(NodeController):
         NodeController.__init__(self, env)
         NodeController.__init__(self, env)
         self._env = env
         self._env = env
 
 
+    def getNick(self):
+        """Return the nickname for this node."""
+        return self._env['nick']
+
     def getPid(self):
     def getPid(self):
         """Assuming that this node has its pidfile in ${dir}/pid, return
         """Assuming that this node has its pidfile in ${dir}/pid, return
            the pid of the running process, or None if there is no pid in the
            the pid of the running process, or None if there is no pid in the
@@ -1200,7 +1204,7 @@ class Network(object):
         print("Bootstrap failed. Node status:")
         print("Bootstrap failed. Node status:")
         for c in controllers:
         for c in controllers:
             c.check(listRunning=False, listNonRunning=True)
             c.check(listRunning=False, listNonRunning=True)
-            print(c.getLastBootstrapStatus())
+            print("{}: {}".format(c.getNick(), c.getLastBootstrapStatus()))
 
 
         return False
         return False