结合日志使用
import traceback try: do_something() except Exception: #traceback.print_exc(file=sys.stdout) loggers.info(traceback.format_exc())