style: Make the log output sequence more readable

This commit is contained in:
LWR
2023-01-07 19:03:13 +08:00
parent 774f36f814
commit 9d9893f553
4 changed files with 29 additions and 3 deletions
+4
View File
@@ -89,6 +89,10 @@ class StarBot:
await up.connect()
except LiveException as ex:
logger.error(ex.msg)
try:
await asyncio.wait_for(self.__datasource.wait_for_connects(), config.get("WAIT_FOR_ALL_CONNECTION_TIMEOUT"))
except asyncio.exceptions.TimeoutError:
logger.warning("等待连接所有直播间超时, 请检查是否存在未连接成功的直播间")
# 启动动态推送模块
asyncio.get_event_loop().create_task(dynamic_spider(self.__datasource))