X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=hippotat%2F__init__.py;h=43f4a49b157329312e64e1a0ee5e559190d15aa4;hb=0accf0d39d4758f5f9ccb960101771f8f666d9ff;hp=90476f5950ad89d3481e38cb670ac28178efe443;hpb=54890d4de8a936ff4f222fd66541b7318808f7ce;p=hippotat.git diff --git a/hippotat/__init__.py b/hippotat/__init__.py index 90476f5..43f4a49 100644 --- a/hippotat/__init__.py +++ b/hippotat/__init__.py @@ -40,6 +40,7 @@ class DBG(twisted.python.constants.Names): QUEUE_CTRL = NamedConstant() HTTP_FULL = NamedConstant() SLIP_FULL = NamedConstant() + CTRL_DUMP = NamedConstant() _hex_codec = codecs.getencoder('hex_codec') @@ -50,7 +51,7 @@ def log_debug(dflag, msg, idof=None, d=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)