Skip to content

[log] Add debug logging to remaining unlogged functions in agentdrain and actionpins - #71993

Merged
pelikhan merged 1 commit into
mainfrom
log/agentdrain-actionpins-debug-logging-e944b1c6fa0852c7
Oct 26, 2026
Merged

pelikhan merged 1 commit into
mainfrom
log/agentdrain-actionpins-debug-logging-e944b1c6fa0852c7

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Adds debug logging to 5 files under pkg/ that were otherwise already well-instrumented, filling the few remaining gaps where a function had no log coverage at all:

  • pkg/actionpins/data.go - cloneActionPin: logs repo/version/input count when cloning a pins inputs.
  • pkg/agentdrain/coordinator.go - minerFor: logs the miss case when no miner is registered for a stage.
  • pkg/agentdrain/event.go - StageSequence: logs the number of events being joined into a stage sequence.
  • pkg/agentdrain/mask.go - Masker.Mask: logs line length and rule count on this hot path, guarded by log.Enabled to avoid overhead when debug logging is off.
  • pkg/agentdrain/miner.go - Miner.prepare: logs the empty-tokens failure path, previously silent before returning an error.

Note: the manifest-driven candidate pool for this run (pkg/actionpins and most of pkg/agentdrain) turned out to already be very thoroughly logged by prior runs of this workflow. Rather than add noisy or duplicate log calls to already-saturated files, including one pure-types file with no functions at all, I picked the specific functions within the candidate pool that genuinely had zero logging, to keep additions meaningful per the project logging guidelines.

Test plan

  • make build passes
  • make fmt passes, no formatting diffs
  • No .md workflow files changed, so make recompile was not needed
  • No test files modified

Generated with Claude Code

Generated by 📝 Go Logger Enhancement · claude · agent · ~80 AIC · ⌖ ~1 AIC · ⊞ 4.2K · ◷

  • expires on Oct 27, 2026, 7:42 PM UTC-08:00

…ctionpins

StageSequence, Mask, Miner.prepare's empty-tokens path, Coordinator.minerFor's
miss case, and cloneActionPin were the only functions in their files without
any debug.Printf coverage; everything else nearby was already instrumented.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Oct 26, 2026
@pelikhan
pelikhan merged commit 91cb8f6 into main Oct 26, 2026
2 checks passed
@pelikhan
pelikhan deleted the log/agentdrain-actionpins-debug-logging-e944b1c6fa0852c7 branch October 26, 2026 11:56
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v1.0.0

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