Skip to content

feat: always log StaleMARC/suppressions-DB report skips#438

Merged
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:feat/loud-skip-logging
Jun 27, 2026
Merged

feat: always log StaleMARC/suppressions-DB report skips#438
thegushi merged 1 commit into
trusteddomainproject:developfrom
thegushi:feat/loud-skip-logging

Conversation

@thegushi

Copy link
Copy Markdown
Collaborator

Summary

  • Every report-skip reason (StaleMARC, the suppressions DB, NoReportsList/--skipdomains) was previously only printed under --verbose, so a report silently dropped via StaleMARC or the suppressions table left no trace in a normal cron run.
  • Adds a loud_skip() helper and wires it into all four skip print sites (aggregate domain-level, aggregate recipient-level, and both --forensic equivalents): StaleMARC and suppressions-DB skips are now always written to stderr, regardless of --verbose.
  • NoReportsList/--skipdomains skips remain --verbose-only, since that list is operator-curated and the operator already knows what's in it; making those loud too would just be noise for anyone using it heavily.
  • Documents the new behavior in the REPORTING SUPPRESSIONS section of the man page.

Test plan

  • perl -c on all report scripts (generated from .in templates) — syntax OK
  • Standalone check that loud_skip() returns true only for "StaleMARC"/"suppression DB" and false for both NoReportsList variants
  • Man page renders correctly via mandoc

Previously every skip reason (StaleMARC, the suppressions DB, and
NoReportsList) was only printed under --verbose, so a report silently
skipped via StaleMARC or the suppressions table left no trace in a
normal cron run. NoReportsList stays --verbose-only since it's
operator-curated and the operator already knows what's in it; the
other two are dynamic/external and worth surfacing by default.
@thegushi thegushi merged commit f65c5f3 into trusteddomainproject:develop Jun 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant