[issue16539] Turn off 'No handlers could be found for logger' message
anatoly techtonik
report at bugs.python.org
Fri Nov 23 15:23:09 CET 2012
anatoly techtonik added the comment:
Forgot to mention that bundled NullHandler doesn't work in Python 2.7 and from what I can see it is not covered with tests for this version.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "patch.py", line 124, in fromstring
return PatchSet( StringIO(s) )
File "patch.py", line 196, in __init__
self.parse(stream)
File "patch.py", line 512, in parse
warning("error: no patch data found!")
File "C:\Python27\lib\logging\__init__.py", line 1152, in warning
self._log(WARNING, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1258, in _log
self.handle(record)
File "C:\Python27\lib\logging\__init__.py", line 1268, in handle
self.callHandlers(record)
File "C:\Python27\lib\logging\__init__.py", line 1307, in callHandlers
if record.levelno >= hdlr.level:
AttributeError: type object 'NullHandler' has no attribute 'level'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16539>
_______________________________________
More information about the Python-bugs-list
mailing list