Skip to content

Restore root logger state on logging teardown - #415

Merged
lesnik512 merged 1 commit into
mainfrom
fix/388-root-logging-teardown
Nov 3, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/388-root-logging-teardown

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Closes #388.

Logging teardown closes and removes the handler installed by the instrument and restores the root logger level from before bootstrap. The docs explain that logging_unset_handlers removals are permanent.

Breaking changes

Teardown preserves other root handlers and restores the previous root level.

Verification

  • The regression failed before the fix and passes with it.
  • just test-ci passed with 618 tests and 100% coverage.
  • just lint-ci passed, including type checking.

Fixes #388

## Breaking changes

Logging teardown preserves other root handlers and restores the root level from before bootstrap.
@lesnik512
lesnik512 merged commit d7a3741 into main Nov 3, 2026
35 checks passed
@lesnik512
lesnik512 deleted the fix/388-root-logging-teardown branch November 3, 2026 05:28
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.

Restore only what LoggingInstrument changed on the root logger at teardown

1 participant