[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r18140: {torctl} Print out flags for confusing descriptors. (torctl/trunk/python/TorCtl)



Author: mikeperry
Date: 2009-01-16 19:40:53 -0500 (Fri, 16 Jan 2009)
New Revision: 18140

Modified:
   torctl/trunk/python/TorCtl/TorCtl.py
Log:

Print out flags for confusing descriptors.



Modified: torctl/trunk/python/TorCtl/TorCtl.py
===================================================================
--- torctl/trunk/python/TorCtl/TorCtl.py	2009-01-17 00:40:22 UTC (rev 18139)
+++ torctl/trunk/python/TorCtl/TorCtl.py	2009-01-17 00:40:53 UTC (rev 18140)
@@ -296,7 +296,7 @@
       if re.search(r"^opt hibernating 1", line):
         #dead = 1 # XXX: Technically this may be stale..
         if ("Running" in ns.flags):
-          plog("INFO", "Hibernating router "+ns.nickname+" is running..")
+          plog("INFO", "Hibernating router "+ns.nickname+" is running, flags: "+" ".join(ns.flags))
       if ac:
         exitpolicy.append(ExitPolicyLine(True, *ac.groups()))
       elif rj:
@@ -313,7 +313,7 @@
       plog("NOTICE", "Got different names " + ns.nickname + " vs " +
              router + " for " + ns.idhex)
     if not bw_observed and not dead and ("Valid" in ns.flags):
-      plog("INFO", "No bandwidth for live router " + ns.nickname)
+      plog("INFO", "No bandwidth for live router "+ns.nickname+", flags: "+" ".join(ns.flags))
     if not version or not os:
       plog("INFO", "No version and/or OS for router " + ns.nickname)
     return Router(ns.idhex, ns.nickname, bw_observed, dead, exitpolicy,