mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
change a few uses of the threading APIs
This commit is contained in:
parent
cbae869759
commit
a9b2222de4
6 changed files with 16 additions and 16 deletions
|
@ -262,7 +262,7 @@ class LogRecord:
|
|||
self.relativeCreated = (self.created - _startTime) * 1000
|
||||
if logThreads and thread:
|
||||
self.thread = thread.get_ident()
|
||||
self.threadName = threading.current_thread().get_name()
|
||||
self.threadName = threading.current_thread().name
|
||||
else:
|
||||
self.thread = None
|
||||
self.threadName = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue