]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 1 Sep 2023 23:43:35 +0000 (01:43 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 1 Sep 2023 23:43:35 +0000 (01:43 +0200)
- some messages are now info, one is debug

fba/commands.py
fba/http/federation.py

index df5bcb7e68f633654831407a7709575239cb55f4..b1b525f4c369d78213079f59ff33052c11e82765 100644 (file)
@@ -325,24 +325,24 @@ def fetch_blocks(args: argparse.Namespace) -> int:
         logger.debug("Invoking federation.fetch_blocks(%s) ...", blocker)
         blocking = federation.fetch_blocks(blocker)
 
-        logger.info("blocker='%s',software='%s' has %d block entries returned.", blocker, software, len(blocking))
+        logger.debug("blocker='%s',software='%s',blocking()=%d", blocker, software, len(blocking))
         if len(blocking) == 0:
             logger.debug("blocker='%s',software='%s' - fetching blocklist ...", blocker, software)
             if software == "pleroma":
                 blocking = pleroma.fetch_blocks(blocker)
-                logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
+                logger.info("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             elif software == "mastodon":
                 blocking = mastodon.fetch_blocks(blocker)
-                logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
+                logger.info("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             elif software == "lemmy":
                 blocking = lemmy.fetch_blocks(blocker)
-                logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
+                logger.info("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             elif software == "friendica":
                 blocking = friendica.fetch_blocks(blocker)
-                logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
+                logger.info("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             elif software == "misskey":
                 blocking = misskey.fetch_blocks(blocker)
-                logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
+                logger.info("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             else:
                 logger.warning("Unknown software: blocker='%s',software='%s'", blocker, software)
 
index b22b278a3ce3039c3b8d46873e0823955dba1213..e913af2ec9271bcfa08189d809f9bd65dbe62ca8 100644 (file)
@@ -554,7 +554,7 @@ def fetch_blocks(domain: str) -> list:
 
     try:
         # json endpoint for newer mastodongs
-        logger.debug("Querying API domain_blocks: domain='%s'", domain)
+        logger.info("Fetching domain_blocks from domain='%s' ...", domain)
         data = network.get_json_api(
             domain,
             "/api/v1/instance/domain_blocks",