Log failure to connect
This commit is contained in:
parent
ceaf8748e9
commit
6ed513efd9
1 changed files with 1 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ class Connection:
|
||||||
)
|
)
|
||||||
self._ws = await asyncio.wait_for(ws, timeout)
|
self._ws = await asyncio.wait_for(ws, timeout)
|
||||||
except (websockets.InvalidHandshake, socket.gaierror, asyncio.TimeoutError): # not websockets.InvalidURI
|
except (websockets.InvalidHandshake, socket.gaierror, asyncio.TimeoutError): # not websockets.InvalidURI
|
||||||
|
logger.warn(f"Connection attempt failed, {tries} tries left.")
|
||||||
self._ws = None
|
self._ws = None
|
||||||
|
|
||||||
if tries is not None:
|
if tries is not None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue