2
0
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:
Dan 2018-05-02 22:36:56 +02:00
parent 074d98c209
commit 02ec86f4b2

View File

@ -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