From 6dfd4d714dee64c124a249a3a379e60023ebd3ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 30 Aug 2023 01:10:49 +0200 Subject: [PATCH] Continued: - removed a lot redundant messages, can be easier --- fba/commands.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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: -- 2.39.5