Skip to content

Conversation

@github-actions
Copy link
Contributor

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

Summary

Enhanced 3 Go files in the pkg/cli/ directory with meaningful debug logging statements to improve troubleshooting and development workflow visibility.

Changes

pkg/cli/gateway_logs.go (613 lines)

  • Added logging to processGatewayLogEntry() - logs event processing details (event type, server, tool)
  • Added logging to calculateGatewayAggregates() - logs aggregate calculation for servers
  • Added logging to extractMCPToolUsageData() - logs MCP tool usage data extraction from log directory
  • Added logging to displayAggregatedGatewayMetrics() - logs aggregation process across multiple runs

pkg/cli/interactive.go (510 lines)

  • Added logging to promptForWorkflowName() - logs when prompting user for workflow name
  • Added logging to promptForConfiguration() - logs when prompting for workflow configuration
  • Added logging to generateWorkflowContent() - logs workflow content generation with engine, tools, and outputs

pkg/cli/trial_repository.go (473 lines)

  • Added logging to cleanupTrialRepository() - logs trial repository cleanup operations
  • Added logging to cloneTrialHostRepository() - logs trial host repository cloning

Validation

  • make build - No compilation errors
  • make test-unit - All tests passed

Impact

These logging additions follow the project's logging guidelines from AGENTS.md:

  • Uses existing package-level loggers (gatewayLogsLog, interactiveLog, trialRepoLog)
  • Log statements have no side effects
  • Provides helpful debugging context for CLI operations
  • Complements existing logging infrastructure

The enhanced logging will help developers and users troubleshoot:

  • MCP gateway log parsing and metrics aggregation issues
  • Interactive workflow creation flow
  • Trial mode repository setup and cleanup

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

AI generated by Go Logger Enhancement

Enhanced 3 Go files with meaningful debug logging statements:
- gateway_logs.go: Added logging to log processing and metrics functions
- interactive.go: Added logging to workflow creation prompts
- trial_repository.go: Added logging to repository management functions

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added automation enhancement New feature or request labels Feb 2, 2026
@pelikhan pelikhan closed this Feb 2, 2026
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.

1 participant