noc.core.debug

Module Contents

noc.core.debug.logger
noc.core.debug.rx_coding
noc.core.debug.ENABLE_CP
noc.core.debug.CP_NEW
noc.core.debug.CP_SET_UID
noc.core.debug.SERVICE_NAME
noc.core.debug.raven_client
noc.core.debug.get_lines_from_file(filename, lineno, context_lines, loader=None, module_name=None)
Returns context_lines before and after lineno from file.
Returns (pre_context_lineno, pre_context, context_line, post_context).
(Borrowed from Django)
noc.core.debug.get_traceback_frames(tb)
(Borrowed from django)
noc.core.debug.get_execution_frames(frame)
noc.core.debug.format_frames(frames, reverse=config.traceback.reverse)
noc.core.debug.check_fatal_errors(t, v)
noc.core.debug.get_traceback(reverse=config.traceback.reverse, fp=None, exc_info=None)
noc.core.debug.excepthook(t, v, tb)
Override default exception handler
noc.core.debug.error_report(reverse=config.traceback.reverse, logger=logger)
noc.core.debug.frame_report(frame, caption=None, logger=logger)
noc.core.debug.error_fingerprint()
noc.core.debug.dump_stacks(thread_id=None)
Dump all or selected active threads' stacks
class noc.core.debug.ErrorReport(reverse=config.traceback.reverse, logger=logger)

Bases: object

error_report context wrapper

__enter__(self)
__exit__(self, exc_type, exc_val, exc_tb)