[log] Add debug logging to CLI utility and configuration files#7594
Merged
[log] Add debug logging to CLI utility and configuration files#7594
Conversation
Enhanced 5 Go files with debug logging following project guidelines: - pkg/cli/ci.go: CI environment detection logging - pkg/cli/github.go: GitHub host resolution logging - pkg/cli/compile_config.go: Validation error sanitization logging - pkg/cli/logs_display.go: Logs display metrics aggregation logging - pkg/cli/logs_command.go: Logs command parameter validation logging All loggers follow the pkg:filename naming convention and avoid side effects in log arguments. Session 28 of the go-logger enhancement initiative. 🤖 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
This PR enhances 5 Go files with debug logging following the project's logging guidelines from AGENTS.md. Session 28 adds dedicated loggers to support better troubleshooting and development visibility.
Files Enhanced
1.
pkg/cli/ci.go(logger:cli:ci)2.
pkg/cli/github.go(logger:cli:github)3.
pkg/cli/compile_config.go(logger:cli:compile_config)4.
pkg/cli/logs_display.go(logger:cli:logs_display)5.
pkg/cli/logs_command.go(logger:cli:logs_command)Key Features
pkg:filenameconvention (e.g.,cli:ci,cli:github)Testing
make buildDEBUG=* ./gh-aw compile devQuality Checklist
make buildDEBUG=* ./gh-aw compile devCache Status
7a3e1e790a75052edbe1e5455ec855588ee20948/tmp/gh-aw/cache-memory/go-logger/