[New-bugs-announce] [issue40544] Formatter exception when using logging.config.fileConfig

mirii1994 report at bugs.python.org
Thu May 7 04:22:24 EDT 2020


New submission from mirii1994 <miri.ignatiev at logz.io>:

In Python 3.8, a "validate" key was added to the Formatter, with a default value of True (https://docs.python.org/3/library/logging.html#formatter-objects).
When using the "logging.config.fileConfig()" method, there is no way to set the "validate" field to "False" if needed, thus making the code to throw an exception.
In "logging.config.dictConfig()" it is possible, since there is an "if" statement that checks the validate field was given a value in the configuration.
It would be useful to add the option to set the "validate" field through "logging.config.fileConfig" like it is on "logging.config.dictConfig", since it's breaking the code for many users who want to upgrade to python 3.8.

----------
messages: 368326
nosy: mirii1994
priority: normal
severity: normal
status: open
title: Formatter exception when using logging.config.fileConfig
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40544>
_______________________________________


More information about the New-bugs-announce mailing list