chiark / gitweb /
wip, towards target
[hippotat.git] / client
diff --git a/client b/client
index 7b2bf78..5dbae1c 100755 (executable)
--- 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))