Add more debug logs to servers

#4 - Investigate extending pr0xy to use SAM
This commit is contained in:
2020-12-18 23:30:13 +01:00
parent 99138ab4fd
commit 6ee38fd897

View File

@@ -92,6 +92,7 @@ class ClientTcpTunnel:
# asynchronously receive data
while i2p_response := await i2p_reader.read(4096):
log.debug("responding with i2p data")
writer.write(i2p_response)
# close the connection
@@ -99,6 +100,7 @@ class ClientTcpTunnel:
except:
logger.exception("Error while proxying")
finally:
log.debug("Closing connection")
writer.close()
return handle_connection