From bbf61239ad4c8b1dd4dbaa7dbc5cc6b90fedb4e0 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 3 Mar 2026 15:54:45 +0800 Subject: [PATCH] fix(kook): remove debug logging for received messages and heartbeat responses --- astrbot/core/platform/sources/kook/kook_client.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/astrbot/core/platform/sources/kook/kook_client.py b/astrbot/core/platform/sources/kook/kook_client.py index a48a6fb65..9a452a9c3 100644 --- a/astrbot/core/platform/sources/kook/kook_client.py +++ b/astrbot/core/platform/sources/kook/kook_client.py @@ -166,7 +166,6 @@ class KookClient: continue msg = msg.decode("utf-8") - logger.debug(f"[KOOK] 收到原始消息: {msg}") data = json.loads(msg) # 处理不同类型的信令 @@ -233,7 +232,6 @@ class KookClient: """处理PONG心跳响应""" self.last_heartbeat_time = time.time() self.heartbeat_failed_count = 0 - logger.debug("[KOOK] 收到心跳响应") async def _handle_reconnect(self, data): """处理重连指令""" @@ -297,7 +295,6 @@ class KookClient: try: ping_data = {"s": 2, "sn": self.last_sn} await self.ws.send(json.dumps(ping_data)) # type: ignore - logger.debug(f"[KOOK] 发送心跳,sn: {self.last_sn}") except Exception as e: logger.error(f"[KOOK] 发送心跳失败: {e}")