[New-bugs-announce] [issue23151] _loggerClass is initialized twice

Serhiy Storchaka report at bugs.python.org
Fri Jan 2 17:04:33 CET 2015


New submission from Serhiy Storchaka:

In Lib/logging/__init__.py at line 1089 _loggerClass is initialized to None. The code in Manager.getLogger() expects that it can be None. But at line 1549 _loggerClass is initialized to Logger. And there is no official way to set it to None. Looks as either initialization to None and the code in Manager.getLogger() are redundant or initialization to Logger is redundant.

----------
components: Library (Lib)
messages: 233313
nosy: serhiy.storchaka, vinay.sajip
priority: normal
severity: normal
status: open
title: _loggerClass is initialized twice

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


More information about the New-bugs-announce mailing list