加入debug 日志,查看退群消息
This commit is contained in:
3
robot.py
3
robot.py
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user