Esempio n. 1
0
 def exceptionHandler_shouldLogException_mask_(self, sender, exception, aMask):
     try:
         if isPythonException(exception):
             return log_python_exception(exception)
         elif self.verbosity & LOGSTACKTRACE:
             return log_objc_exception(exception)
         else:
             return False # don't log it for us
     except:
         log.exception("Error in exception handler")
         sys.stderr.write("Error in exception handler\n")
         sys.stderr.write(traceback.format_exc())
         return bool(self.verbosity & LOGSTACKTRACE)
Esempio n. 2
0
 def exceptionHandler_shouldLogException_mask_(self, sender, exception, aMask):
     try:
         if isPythonException(exception):
             return log_python_exception(exception)
         elif self.verbosity & LOGSTACKTRACE:
             return log_objc_exception(exception)
         else:
             return False # don't log it for us
     except:
         print("*** Exception occurred during exception handler ***",
                 file=sys.stderr)
         traceback.print_exc(sys.stderr)
         return True
Esempio n. 3
0
 def exceptionHandler_shouldLogException_mask_(self, sender, exception,
                                               aMask):
     try:
         if isPythonException(exception):
             return log_python_exception(exception)
         elif self.verbosity & LOGSTACKTRACE:
             return log_objc_exception(exception)
         else:
             return False  # don't log it for us
     except:
         print("*** Exception occurred during exception handler ***",
               file=sys.stderr)
         traceback.print_exc(sys.stderr)
         return True