[New-bugs-announce] [issue29220] Python 3.6 regression/change using logging.addLevelName() to clear a name

Mark Blakeney 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)
messages: 285085
nosy: markb
priority: normal
severity: normal
status: open
title: Python 3.6 regression/change using logging.addLevelName() to clear a name
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29220>
_______________________________________


More information about the New-bugs-announce mailing list