Skip to content

[log] log: add debug logging to 5 pkg/ files#26500

Merged
pelikhan merged 1 commit intomainfrom
log/go-logger-enhancement-2026-04-15-3907ab696ee54aba
Apr 15, 2026
Merged

[log] log: add debug logging to 5 pkg/ files#26500
pelikhan merged 1 commit intomainfrom
log/go-logger-enhancement-2026-04-15-3907ab696ee54aba

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Add logger.New(...) declarations and meaningful debug log calls to five files that previously had no instrumentation.

Files changed

  • pkg/workflow/maintenance_cron.go — log selected cron frequency (every 2h/6h/12h/daily) and side-repo scattered schedule parameters
  • pkg/workflow/maintenance_workflow_yaml.go — log YAML generation entry with key parameters (actionMode, minExpiresDays, cronSchedule) and dev-mode-only job additions
  • pkg/workflow/action_pins.go — log when an action step is successfully pinned vs. skipped (no pin available), and when no embedded pins exist for a repo
  • pkg/cli/gateway_logs_aggregation.go — log aggregate calculation entry (server count) and guard policy summary construction (total blocked events)
  • pkg/agentdrain/defaults.go — log whether embedded default weights were loaded, empty, or absent

Test plan

  • make build passes with no compilation errors
  • go test ./pkg/workflow/... passes (23s)
  • go test ./pkg/cli/... passes (13s)
  • go test ./pkg/agentdrain/... passes

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

Generated by Go Logger Enhancement · ● 1.1M ·

  • expires on Apr 17, 2026, 9:43 PM UTC

Add logger declarations and meaningful log calls to files that lacked
instrumentation: maintenance_cron.go (cron frequency decisions),
maintenance_workflow_yaml.go (YAML generation parameters and mode branches),
action_pins.go (pin resolution outcomes), gateway_logs_aggregation.go
(guard policy event categorization), and defaults.go (weight loading paths).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation enhancement New feature or request labels Apr 15, 2026
@pelikhan pelikhan merged commit 369576f into main Apr 15, 2026
@pelikhan pelikhan deleted the log/go-logger-enhancement-2026-04-15-3907ab696ee54aba branch April 15, 2026 22:18
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