]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 29 Aug 2023 23:10:49 +0000 (01:10 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 29 Aug 2023 23:10:49 +0000 (01:10 +0200)
- removed a lot redundant messages, can be easier

fba/commands.py

index c6199ef8ba86295d3401920626953618e9c0fefa..3fb4ea6869ded2a25451493b1172fd5db88889bf 100644 (file)
@@ -325,27 +325,22 @@ def fetch_blocks(args: argparse.Namespace) -> int:
         logger.debug("Invoking federation.fetch_blocks(%s) ...", blocker)
         blocking = federation.fetch_blocks(blocker)
 
-        logger.debug("blocking()=%d,nodeinfo_url='%s'", len(blocking), nodeinfo_url)
+        logger.info("blocker='%s',software='%s' has %d block entries returned.", blocker, software, len(blocking))
         if len(blocking) == 0:
-            logger.debug("blocker='%s',software='%s'", blocker, software)
+            logger.debug("blocker='%s',software='%s' - fetching blocklist ...", blocker, software)
             if software == "pleroma":
-                logger.info("blocker='%s',software='%s'", blocker, software)
                 blocking = pleroma.fetch_blocks(blocker)
                 logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             elif software == "mastodon":
-                logger.info("blocker='%s',software='%s'", blocker, software)
                 blocking = mastodon.fetch_blocks(blocker)
                 logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             elif software == "lemmy":
-                logger.info("blocker='%s',software='%s'", blocker, software)
                 blocking = lemmy.fetch_blocks(blocker)
                 logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             elif software == "friendica":
-                logger.info("blocker='%s',software='%s'", blocker, software)
                 blocking = friendica.fetch_blocks(blocker)
                 logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             elif software == "misskey":
-                logger.info("blocker='%s',software='%s'", blocker, software)
                 blocking = misskey.fetch_blocks(blocker)
                 logger.debug("blocker='%s' returned %d entries,software='%s'", blocker, len(blocking), software)
             else: