一些Log格式错误被删除

This commit is contained in:
2025-11-07 15:52:06 +08:00
parent a1b3f51b61
commit 477fbf1876
6 changed files with 19 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
"""Callback路由处理"""
from ..Convention.Runtime.GlobalConfig import ProjectConfig
from ..Convention.Runtime.GlobalConfig import *
from fastapi import APIRouter, Request
from fastapi.responses import JSONResponse
@@ -103,6 +103,6 @@ async def handle_command(command: str, message: str,
else:
return f"❌ 未识别指令: {command}"
except Exception as e:
config.Log("Error", f"处理指令异常: {e}", exc_info=True)
config.Log("Error", f"{ConsoleFrontColor.RED}处理指令异常: {e}{ConsoleFrontColor.RESET}")
return f"❌ 处理指令时出错: {str(e)}"

View File

@@ -53,7 +53,7 @@ async def system_stats():
}
})
except Exception as e:
config.Log("Error", f"{ConsoleFrontColor.RED}获取系统统计失败: {e}{ConsoleFrontColor.RESET}", exc_info=True)
config.Log("Error", f"{ConsoleFrontColor.RED}获取系统统计失败: {e}{ConsoleFrontColor.RESET}")
return JSONResponse(
status_code=500,
content={"error": str(e)}