Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c2212d87
Commit
c2212d87
authored
Oct 14, 2009
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #7120: logging: Removed import of multiprocessing which is causing crash in GAE.
parent
95159f32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
Lib/logging/__init__.py
Lib/logging/__init__.py
+3
-5
Misc/NEWS
Misc/NEWS
+8
-5
No files found.
Lib/logging/__init__.py
View file @
c2212d87
...
@@ -273,12 +273,10 @@ class LogRecord:
...
@@ -273,12 +273,10 @@ class LogRecord:
self
.
threadName
=
None
self
.
threadName
=
None
if
not
logMultiprocessing
:
if
not
logMultiprocessing
:
self
.
processName
=
None
self
.
processName
=
None
elif
'multiprocessing'
not
in
sys
.
modules
:
self
.
processName
=
'MainProcess'
else
:
else
:
try
:
self
.
processName
=
sys
.
modules
[
'multiprocessing'
].
current_process
().
name
from
multiprocessing
import
current_process
self
.
processName
=
current_process
().
name
except
ImportError
:
self
.
processName
=
None
if
logProcesses
and
hasattr
(
os
,
'getpid'
):
if
logProcesses
and
hasattr
(
os
,
'getpid'
):
self
.
process
=
os
.
getpid
()
self
.
process
=
os
.
getpid
()
else
:
else
:
...
...
Misc/NEWS
View file @
c2212d87
...
@@ -18,6 +18,9 @@ Core and Builtins
...
@@ -18,6 +18,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #7120: logging: Removed import of multiprocessing which is causing
crash in GAE.
- Issue #7115: Fixed the extension module builds that is failing when using
- Issue #7115: Fixed the extension module builds that is failing when using
paths in the extension name instead of dotted names.
paths in the extension name instead of dotted names.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment