Skip to content

refactor: route all log writes through a single LogWriter#14

Merged
ernolf merged 1 commit into
mainfrom
ernolf/refactor/log-writer
Jul 18, 2026
Merged

refactor: route all log writes through a single LogWriter#14
ernolf merged 1 commit into
mainfrom
ernolf/refactor/log-writer

Conversation

@ernolf

@ernolf ernolf commented Jul 18, 2026

Copy link
Copy Markdown
Owner
  • the format switch, json encoding and locked append existed four times across the middleware and CountingStream; they now live once in LogWriter::write()
  • a failed write logs one warning per process instead of being silently swallowed
  • writeImmediate() reuses the already compacted response headers from the meta array instead of compacting the raw ones a third time
  • adjust the writeImmediate unit test to the narrowed signature

- the format switch, json encoding and locked append existed four times across the middleware and CountingStream; they now live once in LogWriter::write()
- a failed write logs one warning per process instead of being silently swallowed
- writeImmediate() reuses the already compacted response headers from the meta array instead of compacting the raw ones a third time
- adjust the writeImmediate unit test to the narrowed signature

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
@ernolf
ernolf merged commit 727c2e3 into main Jul 18, 2026
36 checks passed
@ernolf
ernolf deleted the ernolf/refactor/log-writer branch July 18, 2026 23:56
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