一些Log格式错误被删除
This commit is contained in:
@@ -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)}"
|
||||
|
||||
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user