Message143815
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. |
|
Date |
User |
Action |
Args |
2011-09-09 23:26:49 | paul.j3 | set | recipients:
+ paul.j3, docs@python |
2011-09-09 23:26:49 | paul.j3 | set | messageid: <1315610809.5.0.0888786272542.issue12954@psf.upfronthosting.co.za> |
2011-09-09 23:26:48 | paul.j3 | link | issue12954 messages |
2011-09-09 23:26:48 | paul.j3 | create | |
|