[log] Add debug logging to CLI gateway, interactive, and trial repository functions #13219
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
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)
processGatewayLogEntry()- logs event processing details (event type, server, tool)calculateGatewayAggregates()- logs aggregate calculation for serversextractMCPToolUsageData()- logs MCP tool usage data extraction from log directorydisplayAggregatedGatewayMetrics()- logs aggregation process across multiple runspkg/cli/interactive.go (510 lines)
promptForWorkflowName()- logs when prompting user for workflow namepromptForConfiguration()- logs when prompting for workflow configurationgenerateWorkflowContent()- logs workflow content generation with engine, tools, and outputspkg/cli/trial_repository.go (473 lines)
cleanupTrialRepository()- logs trial repository cleanup operationscloneTrialHostRepository()- logs trial host repository cloningValidation
make build- No compilation errorsmake test-unit- All tests passedImpact
These logging additions follow the project's logging guidelines from AGENTS.md:
gatewayLogsLog,interactiveLog,trialRepoLog)The enhanced logging will help developers and users troubleshoot:
🤖 Generated with [Claude Code]((claude.com/redacted)