feat:为多个模块添加丰富的追踪信息以增强调试能力
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import os
|
||||
from pymongo import MongoClient
|
||||
from pymongo.database import Database
|
||||
from rich.traceback import install
|
||||
install(show_locals=True, extra_lines=3)
|
||||
|
||||
_client = None
|
||||
_db = None
|
||||
|
||||
@@ -2,6 +2,8 @@ import functools
|
||||
import inspect
|
||||
from typing import Callable, Any
|
||||
from .logger import logger, add_custom_style_handler
|
||||
from rich.traceback import install
|
||||
install(show_locals=True, extra_lines=3)
|
||||
|
||||
|
||||
def use_log_style(
|
||||
|
||||
@@ -2,6 +2,8 @@ from fastapi import FastAPI, APIRouter
|
||||
from typing import Optional
|
||||
from uvicorn import Config, Server as UvicornServer
|
||||
import os
|
||||
from rich.traceback import install
|
||||
install(show_locals=True, extra_lines=3)
|
||||
|
||||
|
||||
class Server:
|
||||
|
||||
Reference in New Issue
Block a user