[issue8200] logging module errors out if log called when multiprocessing module not finished loading
Florent Xicluna
report at bugs.python.org
Mon Mar 22 13:42:08 CET 2010
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
I would suggest something like:
if logMultiprocessing:
try:
self.processName = sys.modules['multiprocessing'] .current_process().name
except StandardError:
self.processName = 'MainProcess'
else:
self.processName = None
----------
nosy: +flox
priority: -> normal
stage: -> committed/rejected
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8200>
_______________________________________
More information about the Python-bugs-list
mailing list