log = twisted.logger.Logger()
+debug_set = set([x for x in DBG.iterconstants() if x <= DBG.HTTP])
+
def log_debug(dflag, msg, idof=None, d=None):
- if dflag > DBG.HTTP: return
+ if dflag not in debug_set: return
#print('---------------->',repr((dflag, msg, idof, d)), file=sys.stderr)
if idof is not None:
msg = '[%#x] %s' % (id(idof), msg)