加入对操作记录的支持

This commit is contained in:
2025-05-07 15:04:45 +08:00
parent 939e29c2d6
commit 6dd18ae1e0
3 changed files with 7 additions and 7 deletions

View File

@ -108,7 +108,7 @@ async def connect_mongo(app: FastAPI, status: bool):
try:
# 触发一次服务器通信来确认连接
data = await client.server_info()
print("MongoDB 连接成功", data)
print("MongoDB 连接成功")
except Exception as e:
raise ValueError(f"MongoDB 连接失败: {e}")
else: