mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Respect users' logger level, don't set to WARNING
This commit is contained in:
parent
074d98c209
commit
02ec86f4b2
@ -324,8 +324,6 @@ class Client:
|
|||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
logging.getLogger().setLevel(logging.INFO)
|
logging.getLogger().setLevel(logging.INFO)
|
||||||
else:
|
|
||||||
logging.getLogger().setLevel(logging.WARNING)
|
|
||||||
|
|
||||||
if self.BOT_TOKEN_RE.match(self.session_name):
|
if self.BOT_TOKEN_RE.match(self.session_name):
|
||||||
self.token = self.session_name
|
self.token = self.session_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user