Skip to content

[log] Add debug logging to CLI command flows#31149

Merged
pelikhan merged 1 commit into
mainfrom
add-cli-logging-enhancements-73379752f2887dfc
May 9, 2026
Merged

[log] Add debug logging to CLI command flows#31149
pelikhan merged 1 commit into
mainfrom
add-cli-logging-enhancements-73379752f2887dfc

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 9, 2026

Summary

  • Introduces a new cli:lint_command logger in pkg/cli/lint_command.go so the lint flow surfaces flag values, file resolution outcomes, and directory expansion in debug output.
  • Adds targeted log calls in pkg/cli/dispatch.go, pkg/cli/includes.go, pkg/cli/logs_run_processor.go, and pkg/cli/trial_helpers.go using each file's existing package-level logger (remoteWorkflowLog, logsOrchestratorLog, trialLog).
  • Log statements cover function entry with key parameters, control-flow decisions (cache hits, .md.yml fallback, cycle/dedup skips, no-op commit branches), and download/peel error paths — without duplicating user-facing console messages.
  • Per AGENTS.md guidelines: 3-5 calls per file, no side effects in log args, logger names follow the pkg:filename convention, no test files modified.

Test plan

  • make build succeeds
  • Targeted unit tests pass (go test ./pkg/cli/ -run "TestDispatch|TestInclude|TestTrial|TestRun|TestLint" -count=1)
  • Reviewer: spot-check that DEBUG=cli:lint_command ./gh-aw lint --help and DEBUG=cli:remote_workflow ./gh-aw add ... emit the new traces in the expected order

Generated by Go Logger Enhancement · ● 46.8M ·

  • expires on May 11, 2026, 4:32 AM UTC

Introduce a new cli:lint_command logger and add targeted log calls in
dispatch, includes, logs_run_processor, and trial_helpers using the
existing package-level loggers. Logs cover function entry, key control
flow decisions (cache hits, .yml fallback, cycle skips), and error paths
to make troubleshooting easier without duplicating user-facing messages.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels May 9, 2026
@pelikhan pelikhan merged commit ddee6bc into main May 9, 2026
@pelikhan pelikhan deleted the add-cli-logging-enhancements-73379752f2887dfc branch May 9, 2026 04:34
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