1
Fork 0

Add log for each request in debug

This commit is contained in:
Jake Howard 2019-01-01 21:17:56 +00:00
parent 13af00688e
commit 47768da41b
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -32,6 +32,9 @@ async def pipe(reader, writer):
async def handle_client(route, local_reader, local_writer):
try:
logger.debug(
"Openning connection to {}".format(destination_host_display(route))
)
remote_reader, remote_writer = await asyncio.open_connection(
route.destination_host, route.destination_port
)