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