Skip to content

fix(examples): log skipped malformed JSONL lines#117

Open
andrewwhitecdw wants to merge 1 commit into
Agent-Field:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/log-malformed-jsonl
Open

fix(examples): log skipped malformed JSONL lines#117
andrewwhitecdw wants to merge 1 commit into
Agent-Field:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/log-malformed-jsonl

Conversation

@andrewwhitecdw

Copy link
Copy Markdown
Contributor

analyze_v2.py and analyze_pipeline.py already narrowed JSONL parsing to json.JSONDecodeError, but the exception handler silently discarded bad lines. Print a warning to stderr so corrupted or partial log data is no longer invisible.

Signed-off-by: Andrew White andrew.white@cdw.com

analyze_v2.py and analyze_pipeline.py already narrowed parsing to
json.JSONDecodeError, but the except branch silently discarded bad
lines. Print a warning to stderr so corrupted log data is visible.

Signed-off-by: Andrew White <andrew.white@cdw.com>
Signed-off-by: Andrew White <andrewh@cdw.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant