Title: Python3.13 logging level not working · Issue #131789 · python/cpython · GitHub
Open Graph Title: Python3.13 logging level not working · Issue #131789 · python/cpython
X Title: Python3.13 logging level not working · Issue #131789 · python/cpython
Description: Bug description: Hi, i noticed a regression in python 3.13.2 that the log level has no effect. I tested the example from https://docs.python.org/3.13/library/logging.html import logging logger = logging.getLogger(__name__) def main(): lo...
Open Graph Description: Bug description: Hi, i noticed a regression in python 3.13.2 that the log level has no effect. I tested the example from https://docs.python.org/3.13/library/logging.html import logging logger = lo...
X Description: Bug description: Hi, i noticed a regression in python 3.13.2 that the log level has no effect. I tested the example from https://docs.python.org/3.13/library/logging.html import logging logger = lo...
Opengraph URL: https://github.com/python/cpython/issues/131789
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python3.13 logging level not working","articleBody":"### Bug description:\n\nHi,\ni noticed a regression in python 3.13.2 that the log level has no effect.\nI tested the example from https://docs.python.org/3.13/library/logging.html\n\n```python\nimport logging\nlogger = logging.getLogger(__name__)\n\ndef main():\n logging.basicConfig(filename='myapp.log', level=logging.INFO)\n logger.info('Started')\n logger.info('Finished')\n\nif __name__ == '__main__':\n main()\n```\n\n```\npython3.13 example.py \n```\n\nbut nothing is printed.\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-131792\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/trivialkettle","@type":"Person","name":"trivialkettle"},"datePublished":"2025-03-27T08:37:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/131789/cpython/issues/131789"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e9ac1640-9269-e527-0c74-3b1f3d55e3ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88CC:CD10D:1072836:1542818:696B0E75 |
| html-safe-nonce | 16ec398c5acd938c44ad6558c20d543c1feb9f6975be5a3cc47f3d353c89d2d4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OENDOkNEMTBEOjEwNzI4MzY6MTU0MjgxODo2OTZCMEU3NSIsInZpc2l0b3JfaWQiOiI0ODgwOTg4MjEzNDgxMjQ2MzI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d616b2884ca2a3d8f706d0137cc1450ffda90b23a26128fc899a7ba4d5837e40 |
| hovercard-subject-tag | issue:2952088217 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/131789/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cef4e65527d6605577519702fdfcde6d8db299017778906ed19686e05a8b16e1/python/cpython/issues/131789 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cef4e65527d6605577519702fdfcde6d8db299017778906ed19686e05a8b16e1/python/cpython/issues/131789 |
| og:image:alt | Bug description: Hi, i noticed a regression in python 3.13.2 that the log level has no effect. I tested the example from https://docs.python.org/3.13/library/logging.html import logging logger = lo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trivialkettle |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width