chiark / gitweb /
wip, towards target
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 19:40:31 +0000 (20:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 19:40:31 +0000 (20:40 +0100)
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))