Add more missing loggers parameters #1089

This commit is contained in:
Lonami Exo 2019-01-15 11:09:08 +01:00
parent 61593279c9
commit 09e58c4e53
2 changed files with 16 additions and 6 deletions

View File

@ -342,8 +342,10 @@ class TelegramBaseClient(abc.ABC):
Connects to Telegram.
"""
await self._sender.connect(self._connection(
self.session.server_address, self.session.port,
loop=self._loop, loggers=self._log,
self.session.server_address,
self.session.port,
loop=self._loop,
loggers=self._log,
proxy=self._proxy
))
self.session.auth_key = self._sender.auth_key
@ -469,7 +471,12 @@ class TelegramBaseClient(abc.ABC):
# with no further clues.
sender = MTProtoSender(None, self._loop, loggers=self._log)
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',
dc)
auth = await self(functions.auth.ExportAuthorizationRequest(dc_id))
@ -495,8 +502,11 @@ class TelegramBaseClient(abc.ABC):
elif not n:
dc = await self._get_dc(dc_id)
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._borrowed_senders[dc_id] = (n + 1, sender)

View File

@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '1.5.3'
__version__ = '1.5.4'