Raymond Hettinger <[email protected]> added the comment:
It looks like the issue is that the root logger is missing from the manager's
loggerDict.
A suggested fix is to change the creation of the loggerDict in the Manager
class:
- self.loggerDict = {}
+ self.loggerDict = {rootnode.name: rootnode}
This may have been omitted from the initial design to avoid reference cycles;
however, with the advent of garbage collection this should no longer be an
issue. Alternatively, a weak reference could be used.
----------
nosy: +rhettinger
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37742>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com