From: Roland Häder Date: Tue, 29 Aug 2023 23:10:49 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6dfd4d714dee64c124a249a3a379e60023ebd3ea;p=fba.git Continued: - removed a lot redundant messages, can be easier --- diff --git a/fba/commands.py b/fba/commands.py index c6199ef..3fb4ea6 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -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: