From 92bc59e688d46638fd609baf3dcbb20419c68022 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 29 Aug 2020 15:46:39 +0200 Subject: [PATCH] Fix dispatcher not obeying to the INFO logging level --- pyrogram/dispatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/dispatcher.py b/pyrogram/dispatcher.py index 2541214e..db3344da 100644 --- a/pyrogram/dispatcher.py +++ b/pyrogram/dispatcher.py @@ -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():