Skip to content

[log] Add debug logging to 5 sparsely-logged Go files#36403

Merged
pelikhan merged 1 commit into
mainfrom
add-debug-logging-2026-06-02-7e199bb1fba1f8ac
Jun 2, 2026
Merged

[log] Add debug logging to 5 sparsely-logged Go files#36403
pelikhan merged 1 commit into
mainfrom
add-debug-logging-2026-06-02-7e199bb1fba1f8ac

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Jun 2, 2026

Add debug logging to 5 sparsely-logged Go files

Summary

Adds diagnostic Printf log statements across five Go files that previously had sparse or missing observability. No logic, signatures, or tests are changed.

Changes

File What was logged
pkg/cli/audit_cross_run.go MCP health building, domain inventory building, drain3 insights entry points
pkg/cli/jsonworkflow_to_markdown.go Workflow generation, trigger conversion, tool conversion entry points
pkg/cli/outcome_eval_generic.go Milestone assignment and PR branch push evaluation entry points
pkg/parser/schema_validation.go Shared workflow on field validation entry
pkg/workflow/on_needs_validation.go on.needs target validation, GitHub App needs expression validation, dependency chain validation

Implementation notes

  • All calls use the existing package-level logger for each file (auditCrossRunLog, jsonWorkflowLog, outcomeEvalGenericLog, schemaValidationLog, onNeedsValidationLog) — no new dependencies introduced.
  • Log messages are structured with Printf format strings that report counts, flags, and state values (e.g. number of items, boolean flags) to make traces actionable without requiring a debugger.
  • No logic changes, no new exported symbols, no test modifications.

Risk

None — logging only. Existing behaviour is entirely preserved.

Generated by PR Description Updater for issue #36403 · sonnet46 964.2K ·

Add meaningful debug log calls to five substantial pkg/ files that
already declared a logger but barely used it, following the project's
pkg:filename logger convention. All log arguments are side-effect-free
reads of in-scope values (len() of collections, booleans, scalars).

- cli:jsonworkflow_to_markdown — generation size/warnings, trigger and
  tool conversion outcomes
- cli:audit_cross_run — MCP health, domain inventory, drain3 insight builds
- cli:outcome_eval_generic — milestone/push-to-PR evaluation entry & PR state
- workflow:on_needs_validation — on.needs target, github-app expression,
  and dependency-chain validation
- parser:schema_validation — shared-workflow on-field validation result

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Jun 2, 2026
@pelikhan pelikhan merged commit 0a4513a into main Jun 2, 2026
@pelikhan pelikhan deleted the add-debug-logging-2026-06-02-7e199bb1fba1f8ac branch June 2, 2026 05:04
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