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, new logging in server
[hippotat.git]
/
server
diff --git
a/server
b/server
index 6cb8d9861e8ed36d3612ef1e7a9c452d75516d8c..f76f50165c3ff7eed02797355e2ee9de2463b68f 100755
(executable)
--- a/
server
+++ b/
server
@@
-67,8
+67,8
@@
class Client():
self._log(DBG.INIT, 'new')
self._log(DBG.INIT, 'new')
- def _log(self,
pri
, msg, **kwargs):
- log_debug(
pri, 'client '+self._ip+': '
+msg, **kwargs)
+ def _log(self,
dflag
, msg, **kwargs):
+ log_debug(
dflag, ('client %s: ' % self._ip)
+msg, **kwargs)
def process_arriving_data(self, d):
self._log(DBG.FLOW, 'req data', d=d)
def process_arriving_data(self, d):
self._log(DBG.FLOW, 'req data', d=d)
@@
-144,7
+144,7
@@
def process_request(request, desca):
desca['ci'] = ci
cl = clients[ci]
if pw != cl.pw: raise ValueError('bad password')
desca['ci'] = ci
cl = clients[ci]
if pw != cl.pw: raise ValueError('bad password')
- desca['pwok'
=True]
+ desca['pwok'
]=True
if tro != cl.target_requests_outstanding:
raise ValueError('tro must be %d' % cl.target_requests_outstanding)
if tro != cl.target_requests_outstanding:
raise ValueError('tro must be %d' % cl.target_requests_outstanding)