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
[hippotat.git]
/
hippotat
/
__init__.py
diff --git
a/hippotat/__init__.py
b/hippotat/__init__.py
index d5da7dd81f1c57ab98304e8e436cd281febb4f17..6286f49bdeae63b1d3a4c1a50b3b95b6de934048 100644
(file)
--- a/
hippotat/__init__.py
+++ b/
hippotat/__init__.py
@@
-44,10
+44,11
@@
_hex_codec = codecs.getencoder('hex_codec')
log = twisted.logger.Logger()
def log_debug(dflag, msg, idof=None, d=None):
log = twisted.logger.Logger()
def log_debug(dflag, msg, idof=None, d=None):
+ #print('---------------->',repr((dflag, msg, idof, d)), file=sys.stderr)
if idof is not None:
msg = '[%d] %s' % (id(idof), msg)
if d is not None:
if idof is not None:
msg = '[%d] %s' % (id(idof), msg)
if d is not None:
- d = d[0:64]
+
#
d = d[0:64]
d = _hex_codec(d)[0].decode('ascii')
msg += ' ' + d
log.info('{dflag} {msgcore}', dflag=dflag, msgcore=msg)
d = _hex_codec(d)[0].decode('ascii')
msg += ' ' + d
log.info('{dflag} {msgcore}', dflag=dflag, msgcore=msg)