Example #1
0
    def loginfo_traceback(self, ctb=None):
        """return a compact traceback tuple and log it encoded as 
		netstrings, along with this instance's __repr__, in the
		'traceback' category"""
        if ctb == None:
            ctb = prompt.compact_traceback()
        self.loginfo_log(*traceback_encode(ctb))
        return ctb
Example #2
0
	def loginfo_traceback (self, ctb=None):
		"""return a compact traceback tuple and log it encoded as 
		netstrings, along with this instance's __repr__, in the
		'traceback' category"""
		if ctb == None:
			ctb = prompt.compact_traceback ()
		self.loginfo_log (*traceback_encode (ctb))
		return ctb
Example #3
0
	def select_trigger_traceback (self):
		"return a compact traceback tuple and log asynchronously"
		ctb = prompt.compact_traceback ()
		self.select_trigger ((
                        self.loginfo_log,
			loginfo.traceback_encode (ctb)
			))
		return ctb
Example #4
0
	def select_trigger_traceback (self):
		"return a compact traceback tuple and log asynchronously"
		ctb = prompt.compact_traceback ()
		self.select_trigger ((
                        self.loginfo_log,
			loginfo.traceback_encode (ctb)
			))
		return ctb
Example #5
0
def _excepthook(*exc_info):
    traceback(prompt.compact_traceback(exc_info))
Example #6
0
def traceback(ctb=None):
    "return a compact traceback and log it in the 'traceback' category"
    if ctb == None:
        ctb = prompt.compact_traceback()
    logger.log(*traceback_encode(ctb))
    return ctb
Example #7
0
def _excepthook (*exc_info):
        traceback (prompt.compact_traceback (exc_info))
Example #8
0
def traceback (ctb=None):
        "return a compact traceback and log it in the 'traceback' category"
        if ctb == None:
                ctb = prompt.compact_traceback ()
        logger.log (*traceback_encode (ctb))
        return ctb