feat:为多个模块添加丰富的追踪信息以增强调试能力

This commit is contained in:
墨梓柒
2025-05-02 03:18:24 +08:00
parent d23bee969d
commit 9cf62f983e
32 changed files with 65 additions and 0 deletions

View File

@@ -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

View File

@@ -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(

View File

@@ -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: