Skip to content

Conversation

@KyleKing
Copy link
Owner

Add --debug flag to show parsing details and error information.

Changes:

  • Add 'debug' boolean field to Config dataclass
  • Add --debug CLI argument to scripts.py
  • Display parsed key values (timestamp, level, message) in debug mode
  • Show detailed parse errors with exception type and message
  • Display when dotted keys are promoted to their own line
  • Make debug parameter keyword-only for better API clarity
  • Update test to exclude runtime 'debug' field from config comparison

Benefits:

  • Easier troubleshooting of log parsing issues
  • Visibility into which keys matched during parsing
  • Clear error messages for malformed JSON
  • Helps users understand dotted key promotion behavior

Resolves TODO from scripts.py:29 (tracked since 2023-02-02)

Usage:
cat logs.jsonl | tail-jsonl --debug
stern pod | tail-jsonl --debug

Add --debug flag to show parsing details and error information.

Changes:
- Add 'debug' boolean field to Config dataclass
- Add --debug CLI argument to scripts.py
- Display parsed key values (timestamp, level, message) in debug mode
- Show detailed parse errors with exception type and message
- Display when dotted keys are promoted to their own line
- Make debug parameter keyword-only for better API clarity
- Update test to exclude runtime 'debug' field from config comparison

Benefits:
- Easier troubleshooting of log parsing issues
- Visibility into which keys matched during parsing
- Clear error messages for malformed JSON
- Helps users understand dotted key promotion behavior

Resolves TODO from scripts.py:29 (tracked since 2023-02-02)

Usage:
  cat logs.jsonl | tail-jsonl --debug
  stern pod | tail-jsonl --debug
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@KyleKing KyleKing merged commit 1be138e into main Nov 22, 2025
4 checks passed
@KyleKing KyleKing deleted the claude/implement-debug-flag-0164SPN6fj1DYzbYkt1rMYWt branch November 22, 2025 05:05
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.

3 participants