[New-bugs-announce] [issue29220] Python 3.6 regression/change using logging.addLevelName() to clear a name
report at bugs.python.org
Mon Jan 9 21:47:19 EST 2017
New submission from Mark Blakeney:
I have code which does a logging.addLevelName(logging.INFO, '') so that the logging level name is not displayed in INFO messages, but is in all other levels. I have been running this code fine since many versions of Python 2 through to 3.5.
Now running with python 3.6.0-1 (on Arch Linux), the name is output in messages as "Level 20". Changing the empty string '' in the call above to a space ' ' is my current work-around.
components: Library (Lib)
title: Python 3.6 regression/change using logging.addLevelName() to clear a name
versions: Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce