Skip to content

fix: clamp the log level and count rewound stream reads once#15

Merged
ernolf merged 1 commit into
mainfrom
ernolf/fix/loglevel-clamp-and-bytecount
Jul 19, 2026
Merged

fix: clamp the log level and count rewound stream reads once#15
ernolf merged 1 commit into
mainfrom
ernolf/fix/loglevel-clamp-and-bytecount

Conversation

@ernolf

@ernolf ernolf commented Jul 19, 2026

Copy link
Copy Markdown
Owner
  • audit_http_client_loglevel values outside 0-2 no longer behave silently like "log everything"; they are clamped to the nearest valid level and the README documents it
  • CountingStream::__toString no longer double counts a seekable body that was partially read before; non-seekable streams keep additive counting
  • README: use a realistic 20-character server request ID in the plain-format example

- audit_http_client_loglevel values outside 0-2 no longer behave silently like "log everything"; they are clamped to the nearest valid level and the README documents it
- CountingStream::__toString no longer double counts a seekable body that was partially read before; non-seekable streams keep additive counting
- README: use a realistic 20-character server request ID in the plain-format example

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
@ernolf
ernolf merged commit a415ad8 into main Jul 19, 2026
36 checks passed
@ernolf
ernolf deleted the ernolf/fix/loglevel-clamp-and-bytecount branch July 19, 2026 00:10
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