From 02ec86f4b285d90313821d2219a86f9b478a5f9b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 2 May 2018 22:36:56 +0200 Subject: [PATCH] Respect users' logger level, don't set to WARNING --- pyrogram/client/client.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 676f861b..44f1cbd4 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -324,8 +324,6 @@ class Client: if debug: logging.getLogger().setLevel(logging.INFO) - else: - logging.getLogger().setLevel(logging.WARNING) if self.BOT_TOKEN_RE.match(self.session_name): self.token = self.session_name