MCPcopy Index your code
hub / github.com/RustPython/RustPython / log_exception

Method log_exception

Lib/wsgiref/handlers.py:366–380  ·  view source on GitHub ↗

Log the 'exc_info' tuple in the server log Subclasses may override to retarget the output or change its format.

(self,exc_info)

Source from the content-addressed store, hash-verified

364
365
366 def log_exception(self,exc_info):
367 """Log the 'exc_info' tuple in the server log
368
369 Subclasses may override to retarget the output or change its format.
370 """
371 try:
372 from traceback import print_exception
373 stderr = self.get_stderr()
374 print_exception(
375 exc_info[0], exc_info[1], exc_info[2],
376 self.traceback_limit, stderr
377 )
378 stderr.flush()
379 finally:
380 exc_info = None
381
382 def handle_error(self):
383 """Log current error, and send error output to client if possible"""

Callers 1

handle_errorMethod · 0.95

Calls 3

get_stderrMethod · 0.95
print_exceptionFunction · 0.90
flushMethod · 0.45

Tested by

no test coverage detected