Skip to content

Commit 8dc0b12

Browse files
sebixwagner-intevation
authored andcommitted
intelmqcbmail: in verbose mode, also print the event IDs
1 parent f350ede commit 8dc0b12

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

debian/changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ intelmq-mailgen (1.3.7-1) UNRELEASED; urgency=medium
99
* Add conceptual overview graphics and some texts
1010
* sql:
1111
* Fix script to create `ip_endpoint` as superuser
12+
* intelmqcbmail tool:
13+
* in verbose mode, also print the event IDs.
1214

1315
-- Sebastian Wagner <swagner@intevation.de> Tue, 18 Mar 2025 09:23:02 +0100
1416

intelmqmail/cb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def generate_notifications_interactively(config, cur, directives, scripts, dry_r
272272
batch, pending = pending[:batch_size], pending[batch_size:]
273273
print(f'Current batch ({len(batch)} of {len(batch) + len(pending)} total):')
274274
for i in batch:
275-
print(f' * {i["recipient_address"]} {i["template_name"]} ({i["notification_format"]}/{i["event_data_format"]}): {len(i["event_ids"])} events')
275+
ids = f": {i['event_ids']}" if log.level == logging.DEBUG else ""
276+
print(f' * {i["recipient_address"]} {i["template_name"]} ({i["notification_format"]}/{i["event_data_format"]}): {len(i["event_ids"])} events{ids}')
276277
valid_answers = ("c", "s", "a", "q")
277278
while True:
278279
answer = input("Options: [c]ontinue (skip), "

0 commit comments

Comments
 (0)