From 303ddc002caddde331ea1447b9c8d0477d5bbf2f Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 5 Jan 2023 21:55:27 -0500 Subject: [PATCH] Prefix mailman output with targeted mailing list --- mailman_sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mailman_sync.py b/mailman_sync.py index da38106..602a7de 100755 --- a/mailman_sync.py +++ b/mailman_sync.py @@ -35,7 +35,8 @@ def sync_members( capture_output=True, check=True, ) - print(output.stdout) + for line in output.stdout.splitlines(): + print(f"[Syncing {mailing_list}] {line}") def main(mailman_bin: Path, api: str, api_auth: str, list_suffix: str, dry_run: bool):