예제 #1
0
 def run(self):
     logger.debug("Thread started.")
     while not self.__stopped:
         self.__wait()
         if not self.__stopped:
             try:
                 self.doCall()
             except Exception as e:
                 logger.critical("Unhandled exception", exc_info=e)
     logger.debug("Thread finished.")
예제 #2
0
 def onUnhandledException(self, exception):
     logger.critical("Unhandled exception", exc_info=exception)