fix: 移除Traceback函数中的 show_locals 参数以简化错误追踪
This commit is contained in:
@@ -3,7 +3,7 @@ from pymongo import MongoClient
|
||||
from pymongo.database import Database
|
||||
from rich.traceback import install
|
||||
|
||||
install(show_locals=True, extra_lines=3)
|
||||
install(extra_lines=3)
|
||||
|
||||
_client = None
|
||||
_db = None
|
||||
|
||||
@@ -4,7 +4,7 @@ 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)
|
||||
install(extra_lines=3)
|
||||
|
||||
|
||||
def use_log_style(
|
||||
|
||||
@@ -4,7 +4,7 @@ from uvicorn import Config, Server as UvicornServer
|
||||
import os
|
||||
from rich.traceback import install
|
||||
|
||||
install(show_locals=True, extra_lines=3)
|
||||
install(extra_lines=3)
|
||||
|
||||
|
||||
class Server:
|
||||
|
||||
Reference in New Issue
Block a user