[log] Add debug logging to import processing, safe outputs PR compilation, and analysis functions#7353
Merged
Merged
Conversation
…and analysis functions Enhanced debug logging across 5 Go files following project guidelines: - pkg/parser/import_processor.go: Import resolution and duplicate detection - pkg/workflow/compiler_safe_outputs_prs.go: PR step configuration and pre-steps - pkg/cli/audit_report_analysis.go: Performance metrics and cost efficiency - pkg/parser/frontmatter_content.go: Frontmatter extraction - pkg/cli/tokens_bootstrap.go: Token bootstrap and engine-specific checks All logging follows project guidelines with no side effects in arguments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This was referenced Dec 23, 2025
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
This PR enhances debug logging across 5 Go files following the project's logging guidelines from AGENTS.md:
All logging follows project guidelines:
pkg:filenamenaming conventionChanges
Files Enhanced
pkg/workflow/compiler_safe_outputs_prs.go (304 lines)
prSafeOutputsLog = logger.New("workflow:compiler_safe_outputs_prs")buildCreatePullRequestStepConfigfor draft and if-no-changes settingsbuildUpdatePullRequestStepConfigfor update operationsbuildCreatePullRequestPreStepsConsolidatedfor app configuration and trial mode detectionpkg/parser/import_processor.go (447 lines)
ProcessImportsFromFrontmatterwith base directory parameterpkg/cli/audit_report_analysis.go (364 lines)
pkg/parser/frontmatter_content.go (301 lines)
ExtractFrontmatterStringto track content sizepkg/cli/tokens_bootstrap.go (283 lines)
runTokensBootstrapwith engine, owner, and repo parametersValidation
make buildDEBUG=* ./gh-aw compile dev- logging output appears correctlyCache Update
Updated persistent cache to track these 5 files as processed, bringing the total enhanced files count to 24 across sessions 21-26.