mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
perf(qqbot/manager.py): 优化控制台日志显示
This commit is contained in:
parent
d9405d8d5d
commit
3f638adcf9
|
@ -64,10 +64,10 @@ class QQBotManager:
|
|||
def __init__(self, mirai_http_api_config: dict, timeout: int = 60, retry: int = 3, pool_num: int = 10, first_time_init=True):
|
||||
self.timeout = timeout
|
||||
self.retry = retry
|
||||
logging.info("Register thread pool Size:{}".format(pool_num))
|
||||
|
||||
self.pool_num = pool_num
|
||||
self.pool = ThreadPoolExecutor(max_workers=self.pool_num)
|
||||
logging.info('done')
|
||||
logging.debug("Registered thread pool Size:{}".format(pool_num))
|
||||
|
||||
# 加载禁用列表
|
||||
if os.path.exists("banlist.py"):
|
||||
|
|
Loading…
Reference in New Issue
Block a user