From 47768da41b84bdbf0f94f789402f15002c0b2fb5 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 1 Jan 2019 21:17:56 +0000 Subject: [PATCH] Add log for each request in debug --- tcp_nat_proxy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcp_nat_proxy.py b/tcp_nat_proxy.py index 7c27970..d0dbc7d 100644 --- a/tcp_nat_proxy.py +++ b/tcp_nat_proxy.py @@ -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 )