[log] Add debug logging to 5 Go files for improved troubleshooting #8160
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
This PR enhances 5 Go files with meaningful debug logging statements to improve troubleshooting and development visibility. All changes follow the project's logging guidelines from AGENTS.md.
Files Enhanced
1. pkg/workflow/claude_tools.go (
workflow:claude_tools)2. pkg/cli/enable.go (
cli:enable)3. pkg/workflow/script_registry.go (
workflow:script_registry)4. pkg/cli/dependency_graph.go (
cli:dependency_graph)5. pkg/cli/spec.go (
cli:spec)Logger Guidelines Compliance
All changes follow the project's logging guidelines:
log.Enabled()checks for expensive debug info where appropriateTesting & Validation
make build(no compilation errors)DEBUG=* ./gh-aw compile devCache Updated
Session 33 information saved to cache:
processed-files.jsonupdated with 5 new files (total: 44 files enhanced)last-run.jsonupdated with current commit SHA and session detailsImpact
These logging enhancements will help developers:
All logging is only visible when
DEBUG=*or specific logger names are enabled, so there's no impact on normal CLI output.