2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Info log device and system parameters

This commit is contained in:
Dan 2018-08-28 12:39:14 +02:00
parent f50638772c
commit b845544e63

View File

@ -157,6 +157,9 @@ class Session:
self.ping_thread.start() self.ping_thread.start()
log.info("Session initialized: Layer {}".format(layer)) 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: except AuthKeyDuplicated as e:
self.stop() self.stop()
raise e raise e