Skip to content

Conversation

@privateip
Copy link
Member

  • Add @cache decorator to _get_loggers() function to avoid repeated logger dictionary iterations
  • Add cache_clear() calls in set_level() when propagate=True to ensure current httpx loggers are included
  • Add cache_clear() call in initialize() to ensure all current loggers are reset
  • Update _get_loggers() docstring to document caching behavior and manual cache clearing
  • Update test to clear cache when testing newly created loggers

- Add @cache decorator to _get_loggers() function to avoid repeated logger dictionary iterations
- Add cache_clear() calls in set_level() when propagate=True to ensure current httpx loggers are included
- Add cache_clear() call in initialize() to ensure all current loggers are reset
- Update _get_loggers() docstring to document caching behavior and manual cache clearing
- Update test to clear cache when testing newly created loggers
@privateip privateip requested a review from a team as a code owner December 12, 2025 04:24
@privateip privateip merged commit 2156762 into itential:devel Dec 12, 2025
4 checks passed
@privateip privateip deleted the cache-loggers branch December 12, 2025 04:37
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