Skip to content

Conversation

@mcollina
Copy link
Member

This reverts commit d6114a6.

Fixes #2287

…licitly set

When creating a child logger with an explicit level option (even if same as parent),
always call setLevel to ensure the child gets its own method references instead of
inheriting from the parent prototype. This prevents issues when parent methods are
wrapped by testing libraries like Sinon.

Fixes #2287

Signed-off-by: Matteo Collina <[email protected]>
@mcollina mcollina requested a review from jsumners October 14, 2025 14:34
@mcollina mcollina merged commit dde9348 into v9.x Oct 18, 2025
14 checks passed
@mcollina mcollina deleted the revert-setlevel-opt-in-9.x branch October 18, 2025 11:34
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.

3 participants