[issue27650] Implement `__repr__` methods for logging.Logger and others
lilydjwg
report at bugs.python.org
Tue Dec 27 07:43:58 EST 2016
lilydjwg added the comment:
This hangs this test from celery: https://github.com/celery/celery/blob/master/t/unit/app/test_log.py#L72
It constructs a Logger with `.parent` to itself, making getEffectiveLevel loop forever. The code tries to raise an exception when such loops are detected, but its message contains the logger's repr which calls getEffectiveLevel.
----------
nosy: +lilydjwg
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27650>
_______________________________________
More information about the Python-bugs-list
mailing list