fixed watchdog timer to actually print stack instead of 'None'
authorForrest Voight <forrest@forre.st>
Sat, 20 Aug 2011 19:28:00 +0000 (15:28 -0400)
committerForrest Voight <forrest@forre.st>
Sat, 20 Aug 2011 19:28:00 +0000 (15:28 -0400)
p2pool/main.py

index 19cd5c4..a13cd3c 100644 (file)
@@ -578,7 +578,7 @@ def main(args):
         if hasattr(signal, 'SIGALRM'):
             def watchdog_handler(signum, frame):
                 print 'Watchdog timer went off at:'
-                traceback.print_exc()
+                traceback.print_stack()
             
             signal.signal(signal.SIGALRM, watchdog_handler)
             task.LoopingCall(signal.alarm, 30).start(1)