From 14c6d55c17a81e119a038980067d93078a4cde75 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 1 Apr 2017 20:40:31 +0100 Subject: [PATCH] wip, towards target --- client | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client b/client index 7b2bf78..5dbae1c 100755 --- a/client +++ b/client @@ -60,9 +60,12 @@ def outbound(packet, saddr, daddr): class ResponseConsumer(twisted.internet.protocol.Protocol): def __init__(self, req): - print('RC INIT', file=sys.stderr) self._req = req self._ssd = SlipStreamDecoder(queue_inbound) + self._log(DBG.HTTP_CTRL, '__init__') + + def _log(self, dflag, msg, **kwargs): + log_debug(dflag, 'RC ' + msg, idof=self._req, **kwargs) def dataReceived(self, data): try: self._ssd.inputdata(mime_translate(data)) -- 2.30.2