Migrate verbose logging to use logger package in run_command.go#2130
Closed
Copilot wants to merge 2 commits intoadd-debug-logging-to-5-files-044d07c55c2435ebfrom
Closed
Migrate verbose logging to use logger package in run_command.go#2130Copilot wants to merge 2 commits intoadd-debug-logging-to-5-files-044d07c55c2435ebfrom
Copilot wants to merge 2 commits intoadd-debug-logging-to-5-files-044d07c55c2435ebfrom
Conversation
Migrated all fmt.Printf verbose logging to use runLog.Printf() for debug output. This follows the project's logger pattern and allows controlled debug output via the DEBUG environment variable. Changes: - Removed verbose flag checks and replaced fmt.Printf with runLog.Printf - All verbose output now goes through the logger package - User-facing messages (success, errors) continue to use console formatting - Debug logging can be enabled with DEBUG=cli:run_command environment variable Validated with: - make build (successful compilation) - make test-unit (all tests pass) - DEBUG=cli:run_command ./gh-aw --help (logger working correctly) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix feedback on debugging and logging enhancements in Go files
Migrate verbose logging to use logger package in run_command.go
Oct 22, 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.
Thanks for the feedback on #2124. This PR migrates verbose logging to use the logger package instead of
fmt.Printfcalls.Original PR: #2124
Triggering review: #2124 (review)
Changes Made
Migrated all
fmt.Printfverbose logging inpkg/cli/run_command.goto use therunLog.Printf()logger pattern:if verbose { fmt.Printf(...) }patterns torunLog.Printf(...)runLoglogger (logger.New("cli:run_command"))DEBUG=cli:run_commandenvironment variableTesting
make buildmake test-unitDEBUG=cli:run_commandThe changes reduce code verbosity (removed 70 lines, added 35 lines) while maintaining the same functionality with better control through the DEBUG environment variable.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.