加入debug 日志,查看退群消息

This commit is contained in:
liuwei
2025-12-22 15:36:50 +08:00
parent 2d9b725acd
commit f1f742811d

View File

@@ -231,7 +231,6 @@ class Robot:
while self.ipad_running:
try:
data = await self.ipad_bot.sync_message()
self.LOG.debug(f"MESSAGE{data}")
except Exception as e:
self.LOG.error(f"获取新消息失败 {e}")
if "用户可能退出" in str(e):
@@ -262,6 +261,8 @@ class Robot:
# 创建独立任务,不阻塞下一条消息
# 并发执行,限制最大并发数
xx = asyncio.create_task(self._process_with_semaphore(wxmsg))
else:
self.LOG.debug(f"MESSAGE{data}")
# 使用异步睡眠替代忙等待循环
await asyncio.sleep(2)