Skip to content

[log] Add debug logging to 5 pkg/ files for better troubleshooting visibility#29200

Merged
pelikhan merged 1 commit intomainfrom
add-debug-logging-pkg-f8c810a2041c831d
Apr 29, 2026
Merged

[log] Add debug logging to 5 pkg/ files for better troubleshooting visibility#29200
pelikhan merged 1 commit intomainfrom
add-debug-logging-pkg-f8c810a2041c831d

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Summary

  • pkg/workflow/template_injection_utils.go: Added logging to extractRunBlocks (reports extracted run block count), removeHeredocContent (logs input/output sizes), and replaceOutsideQuotedHeredocs (logs quoted region count and replacement values)
  • pkg/parser/schedule_cron_detection.go: Added logging to IsWeeklyCron (positive match with minute/hour/dow) and IsCronExpression (both valid-expression and invalid-field-character cases)
  • pkg/agentdrain/miner.go: Added logging to match (candidate count, best similarity, match result) and TrainEvent (entry with stage info)
  • pkg/agentdrain/anomaly.go: Added logging to NewAnomalyDetector (creation with threshold values)
  • pkg/parser/frontmatter_hash.go: Added logging to computeFrontmatterHashFromContent (file path, content size, inlined-imports strategy), extractRelevantTemplateExpressions (input size, found expression count), and processImportsTextBased (import count, cycle detection skips, result count)

Test plan

  • make build passes with no compilation errors
  • make test-unit passes with all tests green
  • All log arguments are side-effect free (only reading existing variables)
  • No test files (*_test.go) were modified
  • Maximum 5 files changed
  • Each file uses its existing package-level logger (no new logger declarations needed)

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

Generated by Go Logger Enhancement · ● 1.3M ·

  • expires on May 1, 2026, 9:47 PM UTC

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