mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
Lower log severity on error during disconnect
This commit is contained in:
parent
4499f3b95e
commit
ecb27f33f7
|
@ -123,9 +123,11 @@ class Connection(abc.ABC):
|
||||||
try:
|
try:
|
||||||
await self._writer.wait_closed()
|
await self._writer.wait_closed()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Seen OSError: No route to host and [Errno 32] Broken pipe
|
# Disconnecting should never raise. Seen:
|
||||||
# Disconnecting should never raise
|
# * OSError: No route to host and
|
||||||
self._log.warning('Unhandled %s on disconnect: %s', type(e), e)
|
# * OSError: [Errno 32] Broken pipe
|
||||||
|
# * ConnectionResetError
|
||||||
|
self._log.info('%s during disconnect: %s', type(e), e)
|
||||||
|
|
||||||
def send(self, data):
|
def send(self, data):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user