[docs] [issue12954] Multiprocessing logging under Windows

paul j3 report at bugs.python.org
Sat Sep 10 01:26:49 CEST 2011


New submission from paul j3 <ajipanca at gmail.com>:

The Windows programming guidelines for the multiprocessing module documentation should include a warning that any logging initialization should be protected by the 'if __name__' block.  Otherwise you will get duplicate logging entries for the child processes.  This is because the multiprocessing.forking.prepare() function explicitly calls log_to_stderr(), and may implicitly do so again when it imports the parent module, resulting in duplicate logging handlers.

----------
assignee: docs at python
components: Documentation
messages: 143815
nosy: docs at python, paul.j3
priority: normal
severity: normal
status: open
title: Multiprocessing logging under Windows

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12954>
_______________________________________


More information about the docs mailing list