Skip to content

[TASK] Deduplicate identical log messages, with a configurable granularity - #1390

Open
linawolf wants to merge 1 commit into
mainfrom
task/dedupe-render-warnings
Open

linawolf wants to merge 1 commit into
mainfrom
task/dedupe-render-warnings

Conversation

@linawolf

@linawolf linawolf commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Part of #920: rendering runs once per configured output format, so a
render-phase warning fires again, identically, for each one (3x for
TYPO3's html/tex/interlink setup). The same warning recurring across
different pages is a related but distinct case.

DeduplicatingLogger wraps the logger and drops a repeat, at one of
three levels configurable via guides.xml's log-deduplication
attribute: exact (same level+message+context), message (same
level+message, ignoring context -- the default, since most messages
already bake the distinguishing detail into their text), or none. A
final summary line reports how many messages were suppressed.

Investigated #1277 as a second beneficiary, but it doesn't apply:
that warning runs once per compile pass and always embeds
document-specific text, so it was never a byte-for-byte repeat.

Signed-off-by: linawolf
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01PP4LkejR5PSubbhNmF4RkT

…arity

Part of #920: rendering runs once per configured output format, so a
render-phase warning fires again, identically, for each one (3x for
TYPO3's html/tex/interlink setup). The same warning recurring across
different pages is a related but distinct case.

DeduplicatingLogger wraps the logger and drops a repeat, at one of
three levels configurable via guides.xml's log-deduplication
attribute: exact (same level+message+context), message (same
level+message, ignoring context -- the default, since most messages
already bake the distinguishing detail into their text), or none. A
final summary line reports how many messages were suppressed.

Investigated #1277 as a second beneficiary, but it doesn't apply:
that warning runs once per compile pass and always embeds
document-specific text, so it was never a byte-for-byte repeat.

Signed-off-by: linawolf
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PP4LkejR5PSubbhNmF4RkT
@linawolf
linawolf force-pushed the task/dedupe-render-warnings branch from 01e87eb to 79c8086 Compare October 1, 2026 11:30
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