()
| 510 | |
| 511 | @staticmethod |
| 512 | def setup_logging(): |
| 513 | def exception_handler(type, value, tb): |
| 514 | logger.exception( |
| 515 | f"Uncaught exception: {str(value)}", exc_info=(type, value, tb) |
| 516 | ) |
| 517 | |
| 518 | logging.config.dictConfig(settings.LOGGING) |
| 519 | sys.excepthook = exception_handler |
| 520 | |
| 521 | @staticmethod |
| 522 | def setup_generator_tool() -> AnyStr: |