From: Roland Häder Date: Fri, 1 Sep 2023 23:43:35 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b26d4769e488e0c23cc2e55127877769ec4c430;p=fba.git Continued: - some messages are now info, one is debug --- diff --git a/fba/commands.py b/fba/commands.py index df5bcb7..b1b525f 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -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) diff --git a/fba/http/federation.py b/fba/http/federation.py index b22b278..e913af2 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -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",