Title: fix: make atexit registration conditional on background transport by otorreno · Pull Request #978 · googleapis/python-logging · GitHub
Open Graph Title: fix: make atexit registration conditional on background transport by otorreno · Pull Request #978 · googleapis/python-logging
X Title: fix: make atexit registration conditional on background transport by otorreno · Pull Request #978 · googleapis/python-logging
Description: The background transport fails on Python 3.12 when working with gRPC in case there are messages in the queue when the Python interpreter exits. Making the registration of the atexit callback conditional so that users can circumvent this error by explicitly stopping the logging when their application terminates. We can consider making the default value depend on the Python version at runtime, but it was decided to not change the default behaviour, regardless of the Python version. Fixes googleapis/google-cloud-python#15408 and #855 (if users would setup the logging disabling the atexit hook).
Open Graph Description: The background transport fails on Python 3.12 when working with gRPC in case there are messages in the queue when the Python interpreter exits. Making the registration of the atexit callback condit...
X Description: The background transport fails on Python 3.12 when working with gRPC in case there are messages in the queue when the Python interpreter exits. Making the registration of the atexit callback condit...
Opengraph URL: https://github.com/googleapis/python-logging/pull/978
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ab25fcb0-d99d-aeec-9846-39fadf00c020 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C404:24E3F0:25A4CD:3267AD:6A4D33E8 |
| html-safe-nonce | 12cbfca309037b3cf34412cd6a951102f17de601b538709e14efa801d413d504 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDA0OjI0RTNGMDoyNUE0Q0Q6MzI2N0FEOjZBNEQzM0U4IiwidmlzaXRvcl9pZCI6Ijg3MDM2MTQ1NTY5NzMxMTg0NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 811348cafa31b3159836dd7d77beb5d049f2cf812b542aa6248e5d5b9fe8bc65 |
| hovercard-subject-tag | pull_request:2378365839 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/googleapis/python-logging/pull/978/files |
| twitter:image | https://avatars.githubusercontent.com/u/1468827?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1468827?s=400&v=4 |
| og:image:alt | The background transport fails on Python 3.12 when working with gRPC in case there are messages in the queue when the Python interpreter exits. Making the registration of the atexit callback condit... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/googleapis/python-logging git https://github.com/googleapis/python-logging.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992562 |
| octolytics-dimension-repository_nwo | googleapis/python-logging |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992562 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-logging |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width