-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Allow logging.handlers.QueueListener to be used as a context manager #132106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
csm10495
added a commit
to csm10495/cpython
that referenced
this issue
Apr 12, 2025
Prevents a thread leak
csm10495
added a commit
to csm10495/cpython
that referenced
this issue
Apr 12, 2025
Prevents a thread leak
vsajip
pushed a commit
that referenced
this issue
Apr 13, 2025
…t be started again (GH-132444) Prevents a thread leak Co-authored-by: Bénédikt Tran <[email protected]>
vsajip
pushed a commit
to vsajip/cpython
that referenced
this issue
Apr 13, 2025
…stener` cannot be started again (pythonGH-132444) Prevents a thread leak Co-authored-by: Bénédikt Tran <[email protected]> (cherry picked from commit 5863cd7) Co-authored-by: Charles Machalow <[email protected]>
vsajip
added a commit
that referenced
this issue
Apr 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature or enhancement
Proposal:
This is a simple change that would allow:
It's a welcomed alternative to needing to call start/stop manually.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/allow-logging-handlers-queuelistener-to-be-used-as-a-context-manager/87124
Linked PRs
logging.handlers.QueueListener
cannot be started again #132444The text was updated successfully, but these errors were encountered: