X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=hippotat%2F__init__.py;h=6286f49bdeae63b1d3a4c1a50b3b95b6de934048;hp=d5da7dd81f1c57ab98304e8e436cd281febb4f17;hb=e8fcf3b7494f214242f8a0a8fe9c72fe7f7a27b1;hpb=dd6665eea9fc248770b757a4314c3c2b8de7cc86 diff --git a/hippotat/__init__.py b/hippotat/__init__.py index d5da7dd..6286f49 100644 --- 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): + #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: - 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)