[or-cvs] r18182: {weather} Add some debugging information  (weather/trunk)
    ioerror at seul.org 
    ioerror at seul.org
       
    Mon Jan 19 22:12:21 UTC 2009
    
    
  
Author: ioerror
Date: 2009-01-19 17:12:20 -0500 (Mon, 19 Jan 2009)
New Revision: 18182
Modified:
   weather/trunk/poll.py
Log:
Add some debugging information
Modified: weather/trunk/poll.py
===================================================================
--- weather/trunk/poll.py	2009-01-19 21:22:22 UTC (rev 18181)
+++ weather/trunk/poll.py	2009-01-19 22:12:20 UTC (rev 18182)
@@ -140,7 +140,6 @@
   "This thread sits around, checking to see if tor nodes are up."
 
   def __init__(self, subscriptions, failures, lock):
-    #self.subscriptions = gdbm.open(weather_storage + "/subscriptions")
     self.gdbm_lock = lock
     self.subscriptions = subscriptions
     self.failure_counts = failures
@@ -184,6 +183,9 @@
 
     finally:
         self.gdbm_lock.release()
+        if debug:
+            print "starting a new round of polls"
+            print 'Timestamp', datetime.now().isoformat('-')
 
     #del self.tp   # this minimises the chance of confusion a local tor control
                   # port crash with a remote node being down
    
    
More information about the tor-commits
mailing list