chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip, towards target
[hippotat.git]
/
client
diff --git
a/client
b/client
index 7b2bf78f678f607e514b0457bbb8c697ba6ef3a1..5dbae1c6bbc3255b2ef7d2017579d74140d916b3 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):
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._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))
def dataReceived(self, data):
try: self._ssd.inputdata(mime_translate(data))