Skip to content

Clarify debug() level scheme: use ranges, not multiples of 10#32

Closed
jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:debug-levels
Closed

Clarify debug() level scheme: use ranges, not multiples of 10#32
jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:debug-levels

Conversation

@jnasbyupgrade
Copy link
Copy Markdown
Contributor

Summary

  • Updates the debug() comment in lib.sh to document the intended range-based scheme: 1-9 for high-level script context, 10-19 for per-loop-iteration detail, 20-29 for nesting — the old comment described "multiples of 10" which was inaccurate
  • Leaves room within each decade for fine-tuning without renumbering

Test plan

  • Docs-only change to lib.sh comment; no behavioral changes
  • Covered by pgxntool-test full suite (209/209 pass)

Update the `debug()` comment in `lib.sh` to document the intended
range-based scheme: 1-9 for high-level script context, 10-19 for
per-loop-iteration detail, 20-29 for nesting inside that — with room
within each decade to fine-tune without renumbering. The old comment
described "multiples of 10" which was inaccurate and misleading.

Related changes in pgxntool-test:
- `helpers.bash`: test `debug()` now uses `$TESTDEBUG` instead of `$DEBUG`
- `SKILL.md`: added advisory debug level distribution check to commit workflow

Co-Authored-By: Claude <noreply@anthropic.com>
@jnasbyupgrade
Copy link
Copy Markdown
Contributor Author

Merged into PR #31 (fix-pr69-issues).

@jnasbyupgrade jnasbyupgrade deleted the debug-levels branch May 15, 2026 20:16
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