[issue10626] test_concurrent_futures implicitly installs a logging handler on import
R. David Murray
report at bugs.python.org
Mon Dec 6 23:23:49 CET 2010
R. David Murray <rdmurray at bitdance.com> added the comment:
Wow, I didn't realize that's how logging worked. My understanding was a module should just get a logger and log messages, and if the application didn't do any setup beforehand, the first logging call would cause messages to be written to stdout (or stderr) in a default format. In fact, I thought that I had observed that behavior in the past, but I just tested it and you are right, it complains about not having a handler.
This definitely seems like a logging bug to me. IMO the only thing a module should need to do is call getlogger with its qualified name and log messages.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10626>
_______________________________________
More information about the Python-bugs-list
mailing list