X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=blobdiff_plain;f=hippotat%2F__init__.py;h=e13b31f642429f443da389eb7095e350155d0baa;hp=fa43065759d82332d9f61c5b4d8305c5346bf32c;hb=380ed56c213ae7a2aa192904c7c031626fad57c2;hpb=389236df4bb2ade1e782e1d20295ffde0ee2226b diff --git a/hippotat/__init__.py b/hippotat/__init__.py index fa43065..e13b31f 100644 --- a/hippotat/__init__.py +++ b/hippotat/__init__.py @@ -32,23 +32,25 @@ import re as regexp import hippotat.slip as slip class DBG(twisted.python.constants.Names): + INIT = NamedConstant() ROUTE = NamedConstant() DROP = NamedConstant() FLOW = NamedConstant() HTTP = NamedConstant() - HTTP_CTRL = NamedConstant() - INIT = NamedConstant() + TWISTED = NamedConstant() QUEUE = NamedConstant() + HTTP_CTRL = NamedConstant() QUEUE_CTRL = NamedConstant() HTTP_FULL = NamedConstant() - SLIP_FULL = NamedConstant() CTRL_DUMP = NamedConstant() + SLIP_FULL = NamedConstant() _hex_codec = codecs.getencoder('hex_codec') log = twisted.logger.Logger() def log_debug(dflag, msg, idof=None, d=None): + if dflag > DBG.HTTP: return #print('---------------->',repr((dflag, msg, idof, d)), file=sys.stderr) if idof is not None: msg = '[%#x] %s' % (id(idof), msg)