Skip to content

Python3.13 logging level not working #131789

Description

@trivialkettle

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

importlogginglogger=logging.getLogger(__name__)
defmain():
logging.basicConfig(filename='myapp.log', level=logging.INFO)
logger.info('Started')
logger.info('Finished')
if__name__=='__main__':
main()
python3.13 example.py 

but nothing is printed.

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions