Skip to content

Python3.13 logging level not working #131789

Closed as not planned
Closed as not planned
@trivialkettle

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

import logging
logger = logging.getLogger(__name__)

def main():
    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