Ari Koivula added the comment:
Actually, multiprocessing.forking.prepare does call log_to_stderr on windows.
While debugging the double handler issue I somehow came to the conclusion that
it didn't, but it seems to work just fine now. I must have been doing something
weird like creatin
Ari Koivula added the comment:
Guarding the initialization is indeed correct and works, but log_to_stderr
adding the handler multiple times is still annoying. Especially as you probably
do want it to be called for child processes (at least on windows) and it might
be called during
Ari Koivula added the comment:
I encountered this problem on Python 3.2.5 on Windows and don't think a vague
warning about initializing modules is a proper solution. A better solution
would be to simply not add multiple handlers, even if log_to_stderr is called
more than