Skip to content

fix: make logging handler close conditional to having the transport opened #990

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

Merged

Conversation

otorreno
Copy link
Contributor

There was a recent release (3.12.0) that included the changes introduced in #917. The newly introduced close method seems to be called by AppEngine Python runtime at shutdown, so if you would call it explicitly before the runtime does it, then the close function throws an exception because transport is None.

Fixes #989

…pened

There was a recent release (3.12.0) that included the changes introduced in
googleapis#917. The newly introduced close method seems to be called by AppEngine
Python runtime at shutdown, so if you would call it explicitly before the runtime
does it, then the close function throws an exception because transport is None.
@otorreno otorreno requested review from a team as code owners April 21, 2025 11:09
@otorreno otorreno requested a review from gkevinzheng April 21, 2025 11:09
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Apr 21, 2025
@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/python-logging API. label Apr 21, 2025
@cindy-peng
Copy link
Contributor

/gcbrun

@cindy-peng cindy-peng added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 21, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 21, 2025
@gkevinzheng gkevinzheng added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 21, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 21, 2025
@gkevinzheng gkevinzheng merged commit 66c6b91 into googleapis:main Apr 21, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/python-logging API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 consecutive calls to CloudLoggingHandler.close throws an exception
5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy