mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
Issue #7120: logging: Removed import of multiprocessing which is causing crash in GAE.
This commit is contained in:
parent
42e30556e5
commit
96d4aa3fca
2 changed files with 9 additions and 8 deletions
|
@ -284,12 +284,10 @@ class LogRecord:
|
|||
self.threadName = None
|
||||
if not logMultiprocessing:
|
||||
self.processName = None
|
||||
elif 'multiprocessing' not in sys.modules:
|
||||
self.processName = 'MainProcess'
|
||||
else:
|
||||
try:
|
||||
from multiprocessing import current_process
|
||||
self.processName = current_process().name
|
||||
except ImportError:
|
||||
self.processName = None
|
||||
self.processName = sys.modules['multiprocessing'].current_process().name
|
||||
if logProcesses and hasattr(os, 'getpid'):
|
||||
self.process = os.getpid()
|
||||
else:
|
||||
|
|
|
@ -12,6 +12,9 @@ What's New in Python 3.2 Alpha 1?
|
|||
Core and Builtins
|
||||
-----------------
|
||||
|
||||
- Issue #7120: logging: Removed import of multiprocessing which is causing
|
||||
crash in GAE.
|
||||
|
||||
- Issue #1754094: Improve the stack depth calculation in the compiler.
|
||||
There should be no other effect than a small decrease in memory use.
|
||||
Patch by Christopher Tur Lesniewski-Laas.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue