If a flush level is specified as a text value in a logging configuration dictionary, dictConfig()
does not convert it to a numeric value.
#117975
Labels
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
If setting up e.g. a
MemoryHandler
with aflushLevel
using a configuration dictionary like this:then you can get a
TypeError
when logging because the value is not converted tologging.ERROR
:CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: