Skip to content

[log] Add debug logging to CLI and workflow package functions#22192

Merged
pelikhan merged 1 commit intomainfrom
add-debug-logging-20260321-202455-e4e643aeed304364
Mar 21, 2026
Merged

[log] Add debug logging to CLI and workflow package functions#22192
pelikhan merged 1 commit intomainfrom
add-debug-logging-20260321-202455-e4e643aeed304364

Conversation

@github-actions
Copy link
Contributor

Add meaningful debug logging calls to 5 files that had declared logger variables but minimal or no usage, improving troubleshooting visibility for developers using DEBUG=* mode.

Files modified

  • pkg/cli/logs_report.go — Added entry-level logging to buildToolUsageSummary, buildMissingToolsSummary, buildMissingDataSummary, and buildMCPFailuresSummary showing the number of processed runs being aggregated.

  • pkg/workflow/tools_parser.go — Added logging to parseBashTool (logging nil/bool/explicit-disable paths), parsePlaywrightTool (default vs configured), and parseSerenaTool (short-syntax language list vs full config).

  • pkg/cli/add_command.go — Added logging to addWorkflows (workflow count), addWorkflowsWithTracking (count + options), and addWorkflowWithTracking (workflow name + content size).

  • pkg/workflow/expression_parser.go — Added logging to BreakAtParentheses when actually breaking a long expression, and to VisitExpressionTree on the nil-node path.

  • pkg/cli/mcp_inspect_mcp.go — Added logging to connectToMCPServer (server name + type), connectStdioMCPServer (command + arg count), and displayServerCapabilities (tool/resource counts + filter).

Test plan

  • make build passes with no compilation errors
  • Package test compilation succeeds (go test -run TestNothing ./pkg/cli/... ./pkg/workflow/...)
  • All added log calls use existing package-level logger variables (reportLog, toolsParserLog, addLog, expressionsLog, mcpInspectServerLog)
  • No log arguments compute side effects or call functions with observable side effects
  • No test files modified

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

Generated by Go Logger Enhancement ·

  • expires on Mar 23, 2026, 8:26 PM UTC

Add meaningful debug logging calls to 5 files that had declared logger
variables but minimal or no usage, improving troubleshooting visibility:

- pkg/cli/logs_report.go: Log entry for buildToolUsageSummary,
  buildMissingToolsSummary, buildMissingDataSummary, and
  buildMCPFailuresSummary with processed run counts
- pkg/workflow/tools_parser.go: Log configuration type decisions in
  parseBashTool, parsePlaywrightTool, and parseSerenaTool
- pkg/cli/add_command.go: Log workflow counts and names in addWorkflows,
  addWorkflowsWithTracking, and addWorkflowWithTracking
- pkg/workflow/expression_parser.go: Log BreakAtParentheses entry when
  actually breaking, and VisitExpressionTree nil-node path
- pkg/cli/mcp_inspect_mcp.go: Log connection details in connectToMCPServer,
  connectStdioMCPServer, and displayServerCapabilities

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation enhancement New feature or request labels Mar 21, 2026
@pelikhan pelikhan merged commit 8e0d6cc into main Mar 21, 2026
@pelikhan pelikhan deleted the add-debug-logging-20260321-202455-e4e643aeed304364 branch March 21, 2026 20:35
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