Skip to content

chore(hlx6): drop prose logs duplicated by audit events - #350

Merged
kptdobe merged 1 commit into
mainfrom
chore/reduce-hlx6-log-noise
Nov 26, 2026
Merged

kptdobe merged 1 commit into
mainfrom
chore/reduce-hlx6-log-noise

Conversation

@kptdobe

@kptdobe kptdobe commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Why

DA worker logs are too noisy. Over 48h (Nov 23–25), da-admin emitted:

  • ~720K HLX6 config dump messages (HLX6_DUAL_WRITES (...), N site(s) in migration, AEM_API: ...) — re-logged on every isolate cold start (~37K/day for each line on the latest deployment).
  • ~258K human-readable [hlx6] -> / <- / propagating / succeeded / skipped lines (~68 MB) that duplicate the structured [hlx6:event] audit records.

What

  • Remove config dumps from getDualWrites (invalid-entry errors are still logged).
  • Remove prose request/response, propagation, outcome, skip and copy lines. Each is already covered by request_started, request_completed, operation_started, operation_completed, operation_skipped or operation_checkpoint.
  • Keep all console.error / console.warn failure diagnostics. "copy failed, source not deleted on hlx6" is now a console.warn.
  • [hlx6:event] audit stream and scripts/hlx6-report.js input are unchanged.

Tests

Updated 3 tests that asserted prose output to assert the equivalent audit fields instead. npm test: 718 passing; lint clean.

Follow-ups (not in this PR)

  • ACL "does not have permission" (~160K/48h) and IMS offline-verification fallback logs in utils/auth.js should be classified/rate-limited, not dropped.
  • Audit event compaction (repeated context, operation_observed + operation_started) needs coordinated report-script changes.

Remove per-isolate HLX6 config dumps and human-readable request,
propagation and skip logs that duplicate [hlx6:event] audit records.
Failures, warnings and the structured audit stream are unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kptdobe
kptdobe requested a review from mhaack November 26, 2026 08:41
@kptdobe
kptdobe marked this pull request as ready for review November 26, 2026 08:42
@kptdobe
kptdobe merged commit 91db867 into main Nov 26, 2026
6 checks passed
@kptdobe
kptdobe deleted the chore/reduce-hlx6-log-noise branch November 26, 2026 10:45
@adobe-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.18.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants