示例#1
0
 def run(self):
     logger.debug("Thread started.")
     while not self.__stopped:
         self.__wait()
         if not self.__stopped:
             try:
                 self.doCall()
             except Exception, e:
                 logger.critical("Unhandled exception", exc_info=e)
示例#2
0
 def run(self):
     logger.debug("Thread started.")
     while not self.__stopped:
         self.__wait()
         if not self.__stopped:
             try:
                 self.doCall()
             except Exception, e:
                 logger.critical("Unhandled exception", exc_info=e)
示例#3
0
 def run(self):
     logger.debug("Thread started.")
     ret = True
     while not self.__stopped:
         if ret:
             self.__wait()
         if not self.__stopped:
             ret = False
             try:
                 ret = self.doCall()
             except Exception, e:
                 logger.critical("Unhandled exception", exc_info=e)
示例#4
0
 def onUnhandledException(self, exception):
     logger.critical("Unhandled exception", exc_info=exception)
     raise
示例#5
0
 def onUnhandledException(self, exception):
     logger.critical("Unhandled exception", exc_info=exception)
     raise