Serhiy Storchaka added the comment: > Historically, getLevelName() gets the name for a level *but also the level > for a name*
Ah, then getLevelName() was broken by issue27937. >>> logging.getLevelName('NOTSET') 'Level NOTSET' The fix should be applied to 3.5. ---------- resolution: fixed -> stage: resolved -> needs patch status: closed -> open versions: +Python 3.5, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29220> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com