Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 3, 2026

Summary

Enhanced three CLI utility files with debug logging to improve troubleshooting and development workflow visibility.

Changes

1. pkg/cli/run_workflow_tracking.go (182 lines)

  • Added logger declaration with cli:run_workflow_tracking namespace
  • Added logging at function entry with workflow and repo parameters
  • Added logging for polling start time
  • Added logging for retry attempts and errors
  • Added logging when matching run is found

2. pkg/cli/mcp_registry_list.go (78 lines)

  • Added logger declaration with cli:mcp_registry_list namespace
  • Added logging at function entry with registry URL
  • Added logging for fetch failures
  • Added logging for successful server retrieval with count

3. pkg/cli/validation_output.go (51 lines)

  • Added logger declaration with cli:validation_output namespace
  • Added logging when formatting validation errors

Quality Assurance

Build Validation: make build passed successfully
⚠️ Unit Tests: Skipped due to network proxy issues (unrelated to code changes)
Logger Naming: Follows project convention (pkg:filename pattern)
No Side Effects: All log arguments are pure values with no computations
Meaningful Messages: Log messages include relevant context for debugging

Test plan

  • Build passes with make build
  • Code follows logger naming conventions from AGENTS.md
  • Logger arguments have no side effects
  • Log messages are meaningful and include context
  • Maximum 5 files modified (3 files)
  • No test files modified

🤖 Generated with [Claude Code]((claude.com/redacted)

AI generated by Go Logger Enhancement

  • expires on Feb 5, 2026, 7:40 AM UTC

Enhanced three CLI utility files with debug logging to improve troubleshooting
and development workflow visibility:

1. pkg/cli/run_workflow_tracking.go (182 lines)
   - Added logger declaration with "cli:run_workflow_tracking" namespace
   - Added logging at function entry with workflow and repo parameters
   - Added logging for polling start time
   - Added logging for retry attempts and errors
   - Added logging when matching run is found

2. pkg/cli/mcp_registry_list.go (78 lines)
   - Added logger declaration with "cli:mcp_registry_list" namespace
   - Added logging at function entry with registry URL
   - Added logging for fetch failures
   - Added logging for successful server retrieval with count

3. pkg/cli/validation_output.go (51 lines)
   - Added logger declaration with "cli:validation_output" namespace
   - Added logging when formatting validation errors

All logging follows the project's logger naming convention (pkg:filename pattern)
and uses meaningful log messages that include relevant context without side effects.
Build validation passed successfully (make build).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@pelikhan pelikhan merged commit 471ccc7 into main Feb 3, 2026
@pelikhan pelikhan deleted the add-debug-logging-cli-utilities-d39e210de5a215f3 branch February 3, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants