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
64e8b970
Kaydet (Commit)
64e8b970
authored
Şub 07, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7869: logging: improved format-time diagnostics and removed some 1.5.2 support code.
üst
b86d3fa4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
17 deletions
+9
-17
__init__.py
Lib/logging/__init__.py
+6
-12
config.py
Lib/logging/config.py
+1
-5
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
64e8b970
...
...
@@ -769,7 +769,10 @@ class Handler(Filterer):
if
raiseExceptions
:
ei
=
sys
.
exc_info
()
try
:
traceback
.
print_exception
(
ei
[
0
],
ei
[
1
],
ei
[
2
],
None
,
sys
.
stderr
)
traceback
.
print_exception
(
ei
[
0
],
ei
[
1
],
ei
[
2
],
None
,
sys
.
stderr
)
sys
.
stderr
.
write
(
'Logged from file
%
s, line
%
s
\n
'
%
(
record
.
filename
,
record
.
lineno
))
except
IOError
:
pass
# see issue 5971
finally
:
...
...
@@ -1572,17 +1575,8 @@ def shutdown(handlerList=_handlerList):
#else, swallow
#Let's try and shutdown automatically on application exit...
try
:
import
atexit
atexit
.
register
(
shutdown
)
except
ImportError
:
# for Python versions < 2.0
def
exithook
(
status
,
old_exit
=
sys
.
exit
):
try
:
shutdown
()
finally
:
old_exit
(
status
)
sys
.
exit
=
exithook
import
atexit
atexit
.
register
(
shutdown
)
# Null handler
...
...
Lib/logging/config.py
Dosyayı görüntüle @
64e8b970
...
...
@@ -58,15 +58,11 @@ def fileConfig(fname, defaults=None, disable_existing_loggers=True):
the ability to select from various pre-canned configurations (if the
developer provides a mechanism to present the choices and load the chosen
configuration).
In versions of ConfigParser which have the readfp method [typically
shipped in 2.x versions of Python], you can pass in a file-like object
rather than a filename, in which case the file-like object will be read
using readfp.
"""
import
ConfigParser
cp
=
ConfigParser
.
ConfigParser
(
defaults
)
if
hasattr
(
cp
,
'readfp'
)
and
hasattr
(
fname
,
'readline'
):
if
hasattr
(
fname
,
'readline'
):
cp
.
readfp
(
fname
)
else
:
cp
.
read
(
fname
)
...
...
Misc/NEWS
Dosyayı görüntüle @
64e8b970
...
...
@@ -75,6 +75,8 @@ Core and Builtins
Library
-------
- Issue #7869: logging: improved diagnostic for format-time errors.
- Issue #7868: logging: added loggerClass attribute to Manager.
- Issue #7851: logging: clarification on logging configuration files.
...
...
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