Skip to content

Unhelpful error message from logging.config.FileConfig can be improved #103606

Closed
@vsajip

Description

@vsajip

Feature or enhancement

If a configuration file does not exist, the error raised by logging.config.fileConfig doesn't say that the file doesn't exist, instead suggesting that the file has an invalid format. This should be improved so that the correct error message is provided.

Pitch

The improved error message will guide a user to an error such as a typo in the filename more quickly. See for example this question.

Linked PRs

Metadata

Metadata

Assignees

Labels

3.11only security fixes3.12only security fixestype-featureA feature request or enhancement

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions