Skip to content

Commit 3a19d99

Browse files
committed
fix: emit compact JSONL from parse_id debug CLI (CM-1318)
Signed-off-by: Uroš Marolt <uros@marolt.me>
1 parent 2df8842 commit 3a19d99

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • services/apps/mailing_list_integration/src/crowdmail/services/parse

services/apps/mailing_list_integration/src/crowdmail/services/parse/noteren.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,10 @@ def parse_id(
395395
msg, blob_id = get_email_from_git(git_dir, git_id)
396396
output = parse_email(msg, source, channel, git_id, blob_id, segment_id, integration_id)
397397

398-
print(json.dumps(output, indent=2), file=outfh)
398+
# Compact, one line per commit (JSONL) — parse_range() calls this once
399+
# per commit in a range, and pretty-printed multi-line JSON per call
400+
# concatenates into an unparseable blob for multi-commit ranges.
401+
print(json.dumps(output), file=outfh)
399402

400403

401404
def parse_range(

0 commit comments

Comments
 (0)