Show exception
This commit is contained in:
parent
df3a3c927e
commit
51de6bbc04
1 changed files with 4 additions and 2 deletions
|
@ -38,8 +38,10 @@ async def handle_client(route, local_reader, local_writer):
|
||||||
await asyncio.gather(
|
await asyncio.gather(
|
||||||
pipe(local_reader, remote_writer), pipe(remote_reader, local_writer)
|
pipe(local_reader, remote_writer), pipe(remote_reader, local_writer)
|
||||||
)
|
)
|
||||||
except (ConnectionRefusedError, OSError):
|
except (ConnectionRefusedError, OSError) as e:
|
||||||
logger.debug("Connection to {} refused".format(destination_host_display(route)))
|
logger.warning(
|
||||||
|
"Connection to {} refused: {}".format(destination_host_display(route), e)
|
||||||
|
)
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
local_writer.close()
|
local_writer.close()
|
||||||
|
|
Reference in a new issue