杀掉一部分日志

This commit is contained in:
minecraft1024a
2025-09-24 18:13:46 +08:00
parent 159a7f7e9d
commit 7607b08cc2
2 changed files with 3 additions and 6 deletions

View File

@@ -471,8 +471,6 @@ class ChatterPlanFilter:
# 确保 action_message 中始终有 message_id 字段
if "message_id" not in target_message_obj and "id" in target_message_obj:
target_message_obj["message_id"] = target_message_obj["id"]
logger.info(f"[_parse_single_action] target_message_obj: {target_message_obj}")
else:
# 如果找不到目标消息对于reply动作来说这是必需的应该记录警告
if action == "reply":

View File

@@ -71,7 +71,6 @@ class SendHandler:
action: Optional[str] = None
id_name: Optional[str] = None
processed_message: list = []
logger.info(message_info,message_segment)
try:
if user_info:
processed_message = await self.handle_seg_recursive(message_segment, user_info)
@@ -97,7 +96,7 @@ class SendHandler:
logger.error("无法识别的消息类型")
return
logger.info("尝试发送到napcat")
logger.info(f"准备发送到napcat的消息体: action='{action}', {id_name}='{target_id}', message='{processed_message}'")
logger.debug(f"准备发送到napcat的消息体: action='{action}', {id_name}='{target_id}', message='{processed_message}'")
response = await self.send_message_to_napcat(
action,
{
@@ -293,7 +292,7 @@ class SendHandler:
async def handle_reply_message(self, id: str, user_info: UserInfo) -> dict | list:
"""处理回复消息"""
logger.info(f"开始处理回复消息消息ID: {id}")
logger.debug(f"开始处理回复消息消息ID: {id}")
reply_seg = {"type": "reply", "data": {"id": id}}
# 检查是否启用引用艾特功能
@@ -303,7 +302,7 @@ class SendHandler:
try:
msg_info_response = await self.send_message_to_napcat("get_msg", {"message_id": id})
logger.info(f"获取消息 {id} 的详情响应: {msg_info_response}")
logger.debug(f"获取消息 {id} 的详情响应: {msg_info_response}")
replied_user_id = None
if msg_info_response and msg_info_response.get("status") == "ok":