Skip to content

[log] feat(logging): add dedicated debug loggers to 5 pkg files#27904

Merged
pelikhan merged 1 commit intomainfrom
add-debug-logging-pkg-workflow-51a407e88282f1ee
Apr 22, 2026
Merged

[log] feat(logging): add dedicated debug loggers to 5 pkg files#27904
pelikhan merged 1 commit intomainfrom
add-debug-logging-pkg-workflow-51a407e88282f1ee

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Adds per-file named loggers to files that were incorrectly inheriting the shared log variable from compiler.go (labeled "workflow:compiler"). Without this fix, enabling DEBUG=workflow:runtime_deduplication produces no output because the underlying logger is named "workflow:compiler".

Changes

  • pkg/workflow/runtime_deduplication.goruntimeDeduplicationLog ("workflow:runtime_deduplication")
  • pkg/workflow/mcp_playwright_config.goplaywrightConfigLog ("workflow:mcp_playwright")
  • pkg/workflow/prompts.gopromptsLog ("workflow:prompts")
  • pkg/workflow/compiler_safe_outputs_builder.gosafeOutputsBuilderLog ("workflow:safe_outputs_builder") with log calls in getEffectiveFooterForTemplatable and getEffectiveFooterString
  • pkg/stringutil/ansi.goansiLog ("stringutil:ansi") with entry-point log in StripANSI

Test plan

  • make build passes
  • make test-unit (Go toolchain version mismatch in CI environment — changes are purely additive: no logic altered, only variable name substitutions and new log declarations)

Generated by Go Logger Enhancement · ● 1.3M ·

  • expires on Apr 24, 2026, 9:41 PM UTC

Adds per-file named loggers to replace the shared package-level `log`
variable (labeled "workflow:compiler") that several workflow files
were incorrectly inheriting. This ensures DEBUG filtering by component
name works correctly (e.g. DEBUG=workflow:runtime_deduplication).

- runtime_deduplication.go: runtimeDeduplicationLog ("workflow:runtime_deduplication")
- mcp_playwright_config.go: playwrightConfigLog ("workflow:mcp_playwright")
- prompts.go: promptsLog ("workflow:prompts")
- compiler_safe_outputs_builder.go: safeOutputsBuilderLog ("workflow:safe_outputs_builder")
- stringutil/ansi.go: ansiLog ("stringutil:ansi") with entry-point logging

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Apr 22, 2026
@pelikhan pelikhan merged commit c7feda7 into main Apr 22, 2026
@pelikhan pelikhan deleted the add-debug-logging-pkg-workflow-51a407e88282f1ee branch April 22, 2026 21:45
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