logger.debug("block='%s'", block)
if "subdomain(s)" in block and len(block["subdomain(s)"]) > 0:
origin = block["blocked"]
+ logger.debug("origin='%s'", origin)
for subdomain in block["subdomain(s)"]:
block["blocked"] = subdomain + "." + origin
+ logger.debug("block[blocked]='%s'", block["blocked"])
blocking.append(block)
else:
blocking.append(block)
logger.debug("blocker[%s]='%s'", type(blocker), blocker)
for block in blocking:
- logger.debug("block[blocked]='%s',block[reason]='%s' - BEFORE!", block["blocked"], block["reason"])
+ logger.debug("block[blocked]='%s',block[block reason(s)]='%s' - BEFORE!", block["blocked"], block["block reason(s)"] if "block reason(s)" in block else None)
block["reason"] = tidyup.reason(block["block reason(s)"]) if "block reason(s)" in block else None
logger.debug("block[blocked]='%s',block[reason]='%s' - AFTER!", block["blocked"], block["reason"])