Fix dispatcher not obeying to the INFO logging level

This commit is contained in:
Dan 2020-08-29 15:46:39 +02:00
parent 22d9077e2b
commit 92bc59e688

View File

@ -119,7 +119,7 @@ class Dispatcher:
self.loop.create_task(self.handler_worker(self.locks_list[-1]))
)
logging.info(f"Started {self.client.workers} HandlerTasks")
log.info(f"Started {self.client.workers} HandlerTasks")
async def stop(self):
if not self.client.no_updates:
@ -132,7 +132,7 @@ class Dispatcher:
self.handler_worker_tasks.clear()
self.groups.clear()
logging.info(f"Stopped {self.client.workers} HandlerTasks")
log.info(f"Stopped {self.client.workers} HandlerTasks")
def add_handler(self, handler, group: int):
async def fn():