make web socket timeout a warning with a traceback (#12824)

This commit is contained in:
Kyle Altendorf 2022-08-16 14:45:40 -04:00 committed by GitHub
parent 3bcfb21f74
commit 5f1e483511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,9 +262,7 @@ class WSChiaConnection:
await self._send_message(msg)
except asyncio.CancelledError:
pass
except BrokenPipeError as e:
self.log.warning(f"{e} {self.peer_host}")
except ConnectionResetError as e:
except (BrokenPipeError, ConnectionResetError, TimeoutError) as e:
self.log.warning(f"{e} {self.peer_host}")
except Exception as e:
error_stack = traceback.format_exc()