mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
Add more missing loggers parameters #1089
This commit is contained in:
parent
61593279c9
commit
09e58c4e53
|
@ -342,8 +342,10 @@ class TelegramBaseClient(abc.ABC):
|
||||||
Connects to Telegram.
|
Connects to Telegram.
|
||||||
"""
|
"""
|
||||||
await self._sender.connect(self._connection(
|
await self._sender.connect(self._connection(
|
||||||
self.session.server_address, self.session.port,
|
self.session.server_address,
|
||||||
loop=self._loop, loggers=self._log,
|
self.session.port,
|
||||||
|
loop=self._loop,
|
||||||
|
loggers=self._log,
|
||||||
proxy=self._proxy
|
proxy=self._proxy
|
||||||
))
|
))
|
||||||
self.session.auth_key = self._sender.auth_key
|
self.session.auth_key = self._sender.auth_key
|
||||||
|
@ -469,7 +471,12 @@ class TelegramBaseClient(abc.ABC):
|
||||||
# with no further clues.
|
# with no further clues.
|
||||||
sender = MTProtoSender(None, self._loop, loggers=self._log)
|
sender = MTProtoSender(None, self._loop, loggers=self._log)
|
||||||
await sender.connect(self._connection(
|
await sender.connect(self._connection(
|
||||||
dc.ip_address, dc.port, loop=self._loop, proxy=self._proxy))
|
dc.ip_address,
|
||||||
|
dc.port,
|
||||||
|
loop=self._loop,
|
||||||
|
loggers=self._log,
|
||||||
|
proxy=self._proxy
|
||||||
|
))
|
||||||
self._log[__name__].info('Exporting authorization for data center %s',
|
self._log[__name__].info('Exporting authorization for data center %s',
|
||||||
dc)
|
dc)
|
||||||
auth = await self(functions.auth.ExportAuthorizationRequest(dc_id))
|
auth = await self(functions.auth.ExportAuthorizationRequest(dc_id))
|
||||||
|
@ -495,8 +502,11 @@ class TelegramBaseClient(abc.ABC):
|
||||||
elif not n:
|
elif not n:
|
||||||
dc = await self._get_dc(dc_id)
|
dc = await self._get_dc(dc_id)
|
||||||
await sender.connect(self._connection(
|
await sender.connect(self._connection(
|
||||||
dc.ip_address, dc.port,
|
dc.ip_address,
|
||||||
loop=self._loop, proxy=self._proxy
|
dc.port,
|
||||||
|
loop=self._loop,
|
||||||
|
loggers=self._log,
|
||||||
|
proxy=self._proxy
|
||||||
))
|
))
|
||||||
|
|
||||||
self._borrowed_senders[dc_id] = (n + 1, sender)
|
self._borrowed_senders[dc_id] = (n + 1, sender)
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '1.5.3'
|
__version__ = '1.5.4'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user