]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 31 May 2025 05:48:15 +0000 (07:48 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 31 May 2025 05:48:15 +0000 (07:48 +0200)
- include block reason in debug message

fba/helpers/blacklist.py

index 69c9e855e1ecc8dea9bc67b196f14f846b715050..d59eeb9407f00cfc7c1996d2c3e47b64c5abc1b8 100644 (file)
@@ -97,7 +97,7 @@ def is_blacklisted(domain: str) -> bool:
     for blocked in _blacklist:
         logger.debug("Checking blocked='%s' ...", blocked)
         if blocked in domain:
-            logger.debug("domain='%s' is blacklisted.", domain)
+            logger.debug("domain='%s' is blacklisted with reason '%s'.", domain, _blacklist[blocked])
             blacklisted = True
             break