From b845544e638eb7b6e96c74154af5052d1300a51d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 28 Aug 2018 12:39:14 +0200 Subject: [PATCH] Info log device and system parameters --- pyrogram/session/session.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index f0387002..4ca32733 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -157,6 +157,9 @@ class Session: self.ping_thread.start() log.info("Session initialized: Layer {}".format(layer)) + log.info("Device: {} - {}".format(self.client.device_model, self.client.app_version)) + log.info("System: {} ({})".format(self.client.system_version, self.client.lang_code.upper())) + except AuthKeyDuplicated as e: self.stop() raise e