mirror of
https://github.com/paul-nameless/tg
synced 2025-02-16 10:38:23 +00:00
Setup logs later then initializing tdlib to see errors
This commit is contained in:
parent
4d3fe2b952
commit
e4b46a0430
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,6 @@ def run(tg: Tdlib, stdscr: window) -> None:
|
|||
|
||||
|
||||
def main():
|
||||
utils.setup_log()
|
||||
tg = Tdlib(
|
||||
api_id=config.API_ID,
|
||||
api_hash=config.API_HASH,
|
||||
|
@ -55,6 +54,8 @@ def main():
|
|||
library_path=config.TDLIB_PATH,
|
||||
)
|
||||
tg.login()
|
||||
|
||||
utils.setup_log()
|
||||
utils.set_shorter_esc_delay()
|
||||
|
||||
wrapper(partial(run, tg))
|
||||
|
|
Loading…
Add table
Reference in a new issue