[log] Add debug logging to parser and CLI compilation stats#7210
Merged
[log] Add debug logging to parser and CLI compilation stats#7210
Conversation
Enhanced 5 Go files with meaningful debug logging: Parser package: - tools_merger.go: Log tool merging operations with metrics - include_processor.go: Log include processing and resolution - include_expander.go: Log recursive expansion depth and results - content_extractor.go: Log tool extraction and parsing CLI package: - compile_stats.go: Added logger and stats collection logging All changes follow project logging guidelines from AGENTS.md. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhanced 5 Go files with meaningful debug logging to improve troubleshooting and development workflows:
All changes follow the project's logging guidelines from AGENTS.md and use the package-level loggers where appropriate.
Changes Made
Parser Package (
pkg/parser/)tools_merger.go - Tool configuration merging
include_processor.go - Include directive processing
include_expander.go - Recursive include expansion
content_extractor.go - Frontmatter field extraction
CLI Package (
pkg/cli/)cli:compile_statsTesting
make build(no compilation errors)DEBUG=* ./gh-aw compile devto verify logging outputDEBUG=* ./gh-aw compile dev --statsto verify stats loggingQuality Checklist
make buildExamples of New Debug Output
When running with
DEBUG=*:Generated with [Claude Code]((redacted)
Co-Authored-By: Claude Sonnet 4.5 (noreply@anthropic.com)