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
12f482e0
Unverified
Kaydet (Commit)
12f482e0
authored
Haz 08, 2018
tarafından
Yury Selivanov
Kaydeden (comit)
GitHub
Haz 08, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-30805: Avoid race condition with debug logging (GH-7545)
Supersedes
https://github.com/python/cpython/pull/2490
üst
1cbdb220
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
base_events.py
Lib/asyncio/base_events.py
+4
-2
2018-06-08-17-34-16.bpo-30805.3qCWa0.rst
...S.d/next/Library/2018-06-08-17-34-16.bpo-30805.3qCWa0.rst
+1
-0
No files found.
Lib/asyncio/base_events.py
Dosyayı görüntüle @
12f482e0
...
@@ -1476,6 +1476,7 @@ class BaseEventLoop(events.AbstractEventLoop):
...
@@ -1476,6 +1476,7 @@ class BaseEventLoop(events.AbstractEventLoop):
if
bufsize
!=
0
:
if
bufsize
!=
0
:
raise
ValueError
(
"bufsize must be 0"
)
raise
ValueError
(
"bufsize must be 0"
)
protocol
=
protocol_factory
()
protocol
=
protocol_factory
()
debug_log
=
None
if
self
.
_debug
:
if
self
.
_debug
:
# don't log parameters: they may contain sensitive information
# don't log parameters: they may contain sensitive information
# (password) and may be too long
# (password) and may be too long
...
@@ -1483,7 +1484,7 @@ class BaseEventLoop(events.AbstractEventLoop):
...
@@ -1483,7 +1484,7 @@ class BaseEventLoop(events.AbstractEventLoop):
self
.
_log_subprocess
(
debug_log
,
stdin
,
stdout
,
stderr
)
self
.
_log_subprocess
(
debug_log
,
stdin
,
stdout
,
stderr
)
transport
=
await
self
.
_make_subprocess_transport
(
transport
=
await
self
.
_make_subprocess_transport
(
protocol
,
cmd
,
True
,
stdin
,
stdout
,
stderr
,
bufsize
,
**
kwargs
)
protocol
,
cmd
,
True
,
stdin
,
stdout
,
stderr
,
bufsize
,
**
kwargs
)
if
self
.
_debug
:
if
self
.
_debug
and
debug_log
is
not
None
:
logger
.
info
(
'
%
s:
%
r'
,
debug_log
,
transport
)
logger
.
info
(
'
%
s:
%
r'
,
debug_log
,
transport
)
return
transport
,
protocol
return
transport
,
protocol
...
@@ -1504,6 +1505,7 @@ class BaseEventLoop(events.AbstractEventLoop):
...
@@ -1504,6 +1505,7 @@ class BaseEventLoop(events.AbstractEventLoop):
f
"program arguments must be a bytes or text string, "
f
"program arguments must be a bytes or text string, "
f
"not {type(arg).__name__}"
)
f
"not {type(arg).__name__}"
)
protocol
=
protocol_factory
()
protocol
=
protocol_factory
()
debug_log
=
None
if
self
.
_debug
:
if
self
.
_debug
:
# don't log parameters: they may contain sensitive information
# don't log parameters: they may contain sensitive information
# (password) and may be too long
# (password) and may be too long
...
@@ -1512,7 +1514,7 @@ class BaseEventLoop(events.AbstractEventLoop):
...
@@ -1512,7 +1514,7 @@ class BaseEventLoop(events.AbstractEventLoop):
transport
=
await
self
.
_make_subprocess_transport
(
transport
=
await
self
.
_make_subprocess_transport
(
protocol
,
popen_args
,
False
,
stdin
,
stdout
,
stderr
,
protocol
,
popen_args
,
False
,
stdin
,
stdout
,
stderr
,
bufsize
,
**
kwargs
)
bufsize
,
**
kwargs
)
if
self
.
_debug
:
if
self
.
_debug
and
debug_log
is
not
None
:
logger
.
info
(
'
%
s:
%
r'
,
debug_log
,
transport
)
logger
.
info
(
'
%
s:
%
r'
,
debug_log
,
transport
)
return
transport
,
protocol
return
transport
,
protocol
...
...
Misc/NEWS.d/next/Library/2018-06-08-17-34-16.bpo-30805.3qCWa0.rst
0 → 100644
Dosyayı görüntüle @
12f482e0
Avoid race condition with debug logging
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