Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3017a7bb
Kaydet (Commit)
3017a7bb
authored
Mar 22, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8200: logging: Handle errors when multiprocessing is not fully loaded when logging occurs.
üst
95affc44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
__init__.py
Lib/logging/__init__.py
+11
-3
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
3017a7bb
...
@@ -287,10 +287,18 @@ class LogRecord(object):
...
@@ -287,10 +287,18 @@ class LogRecord(object):
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
:
self
.
processName
=
sys
.
modules
[
'multiprocessing'
]
.
current_process
()
.
name
self
.
processName
=
'MainProcess'
mp
=
sys
.
modules
.
get
(
'multiprocessing'
)
if
mp
is
not
None
:
# Errors may occur if multiprocessing has not finished loading
# yet - e.g. if a custom import hook causes third-party code
# to run when multiprocessing calls import. See issue 8200
# for an example
try
:
self
.
processName
=
mp
.
current_process
()
.
name
except
StandardError
:
pass
if
logProcesses
and
hasattr
(
os
,
'getpid'
):
if
logProcesses
and
hasattr
(
os
,
'getpid'
):
self
.
process
=
os
.
getpid
()
self
.
process
=
os
.
getpid
()
else
:
else
:
...
...
Misc/NEWS
Dosyayı görüntüle @
3017a7bb
...
@@ -29,6 +29,9 @@ Core and Builtins
...
@@ -29,6 +29,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #8200: logging: Handle errors when multiprocessing is not
fully loaded when logging occurs.
- Issue #3890: Fix recv() and recv_into() on non-blocking SSL sockets.
- Issue #3890: Fix recv() and recv_into() on non-blocking SSL sockets.
- Issue #8179: Fix macpath.realpath() on a non-existing path.
- Issue #8179: Fix macpath.realpath() on a non-existing path.
...
...
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