def noch_parse_exception(error_object, *args):
merc.GDF = False
wrap_call = inspect.getinnerframes(sys.exc_info()[2])
logger.debug("Exception: %s %s" % (type(error_object), str(error_object)))
for call_info in reversed(wrap_call):
local_calls = call_info[0].f_locals
if '_logged__tracer_var_' in local_calls:
continue
tracestring = "Frame Trace: \nFile: %s \nLine: %d \n ", call_info[1], call_info[2]
tracestring += "Function: %s \nCode: %s ", call_info[3], call_info[4][0].lstrip()
logger.debug(tracestring)
logger.debug("Local Env Variables: ")
for k, v in local_calls.items():
levtrace = value_to_str(v)
logger.debug("%s : %s", k, levtrace)
评论列表
文章目录