From 705965a17cf2eb83de45528932ab45a5adf76976 Mon Sep 17 00:00:00 2001 From: Shawn Grigson Date: Sun, 10 Sep 2023 19:20:17 -0500 Subject: [PATCH] audit update --- src/fediblockhole/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fediblockhole/__init__.py b/src/fediblockhole/__init__.py index 778c587..148c9b4 100755 --- a/src/fediblockhole/__init__.py +++ b/src/fediblockhole/__init__.py @@ -628,7 +628,7 @@ def push_blocklist(token: str, host: str, blocklist: list[DomainBlock], # stamp this record with a private comment, since we're the ones adding it if override_private_comment: newblock.private_comment = override_private_comment - + # This is a new block for the target instance, so we # need to add a block rather than update an existing one log.info(f"Adding new block: {newblock}...") @@ -643,6 +643,9 @@ def push_blocklist(token: str, host: str, blocklist: list[DomainBlock], else: log.info("Dry run selected. Not adding block.") + for block in serverblocks: + log.debug(f"Checking block: {block}") + def load_config(configfile: str): """Augment commandline arguments with config file parameters