cc-4240: added recorder stacktrace print

This commit is contained in:
Rudi Grinberg 2012-08-21 15:12:45 -04:00
parent e539808586
commit 36c3bf5763
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import sys
import pytz
import signal
import math
import traceback
from configobj import ConfigObj
@ -310,6 +311,7 @@ class Recorder(Thread):
self.logger.error(e)
try: self.handle_message()
except Exception, e:
self.logger.error( traceback.format_exc() )
self.logger.error('Pypo Recorder Exception: %s', e)
time.sleep(PUSH_INTERVAL)
self.loops += 1