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
f70867aa
Kaydet (Commit)
f70867aa
authored
Eyl 29, 2009
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7014: logging: Improved IronPython 2.6 compatibility.
üst
dbf3b258
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
__init__.py
Lib/logging/__init__.py
+14
-6
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
f70867aa
...
...
@@ -282,11 +282,14 @@ class LogRecord:
else
:
self
.
thread
=
None
self
.
threadName
=
None
if
logMultiprocessing
:
from
multiprocessing
import
current_process
self
.
processName
=
current_process
()
.
name
else
:
if
not
logMultiprocessing
:
self
.
processName
=
None
else
:
try
:
from
multiprocessing
import
current_process
self
.
processName
=
current_process
()
.
name
except
ImportError
:
self
.
processName
=
None
if
logProcesses
and
hasattr
(
os
,
'getpid'
):
self
.
process
=
os
.
getpid
()
else
:
...
...
@@ -1125,7 +1128,11 @@ class Logger(Filterer):
Find the stack frame of the caller so that we can note the source
file name, line number and function name.
"""
f
=
currentframe
()
.
f_back
f
=
currentframe
()
#On some versions of IronPython, currentframe() returns None if
#IronPython isn't run with -X:Frames.
if
f
is
not
None
:
f
=
f
.
f_back
rv
=
"(unknown file)"
,
0
,
"(unknown function)"
while
hasattr
(
f
,
"f_code"
):
co
=
f
.
f_code
...
...
@@ -1157,7 +1164,8 @@ class Logger(Filterer):
"""
if
_srcfile
:
#IronPython doesn't track Python frames, so findCaller throws an
#exception. We trap it here so that IronPython can use logging.
#exception on some versions of IronPython. We trap it here so that
#IronPython can use logging.
try
:
fn
,
lno
,
func
=
self
.
findCaller
()
except
ValueError
:
...
...
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