From 6fd58e1e4a6a5fa5f227673b5f586899c5cf7d73 Mon Sep 17 00:00:00 2001 From: WideLee Date: Fri, 17 Apr 2026 20:29:33 +0800 Subject: [PATCH] refactor(qqbot): replace log tags with self._log_tag --- gateway/platforms/qqbot/adapter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/platforms/qqbot/adapter.py b/gateway/platforms/qqbot/adapter.py index 0e3d546fa..286d8347e 100644 --- a/gateway/platforms/qqbot/adapter.py +++ b/gateway/platforms/qqbot/adapter.py @@ -1860,15 +1860,15 @@ class QQAdapter(BasePlatformAdapter): Returns True if reconnected, False if still disconnected. """ logger.info("[%s] Not connected — waiting for reconnection (up to %.0fs)", - self.name, self._RECONNECT_WAIT_SECONDS) + self._log_tag, self._RECONNECT_WAIT_SECONDS) waited = 0.0 while waited < self._RECONNECT_WAIT_SECONDS: await asyncio.sleep(self._RECONNECT_POLL_INTERVAL) waited += self._RECONNECT_POLL_INTERVAL if self.is_connected: - logger.info("[%s] Reconnected after %.1fs", self.name, waited) + logger.info("[%s] Reconnected after %.1fs", self._log_tag, waited) return True - logger.warning("[%s] Still not connected after %.0fs", self.name, self._RECONNECT_WAIT_SECONDS) + logger.warning("[%s] Still not connected after %.0fs", self._log_tag, self._RECONNECT_WAIT_SECONDS) return False async def send(