From c96434299f6172c7f8106e90a1864929cc1f1127 Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Fri, 24 Oct 2025 19:23:23 +0800 Subject: [PATCH] =?UTF-8?q?chore(log):=20=E8=B0=83=E6=95=B4=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=BA=A7=E5=88=AB=E4=BB=A5=E5=87=8F=E5=B0=91=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将部分用于调试回复消息功能的 `info` 级别日志调整为 `debug` 级别,避免在生产环境中输出过多冗余信息,让日志更清爽一些。 --- .../built_in/napcat_adapter_plugin/src/send_handler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py b/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py index 53e193443..ab1074986 100644 --- a/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py +++ b/src/plugins/built_in/napcat_adapter_plugin/src/send_handler.py @@ -237,7 +237,6 @@ class SendHandler: target_id = str(target_id) if target_id == "notice": return payload - logger.info(target_id if isinstance(target_id, str) else "") new_payload = self.build_payload( payload, await self.handle_reply_message(target_id if isinstance(target_id, str) else "", user_info), @@ -322,7 +321,7 @@ class SendHandler: # 如果没有获取到被回复者的ID,则直接返回,不进行@ if not replied_user_id: logger.warning(f"无法获取消息 {id} 的发送者信息,跳过 @") - logger.info(f"最终返回的回复段: {reply_seg}") + logger.debug(f"最终返回的回复段: {reply_seg}") return reply_seg # 根据概率决定是否艾特用户 @@ -340,7 +339,7 @@ class SendHandler: logger.info(f"最终返回的回复段: {reply_seg}") return reply_seg - logger.info(f"最终返回的回复段: {reply_seg}") + logger.debug(f"最终返回的回复段: {reply_seg}") return reply_seg def handle_text_message(self, message: str) -> dict: