summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-08-18 18:01:43 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-08-18 18:01:43 (GMT)
commita9b2222de40ed62e6ec1c79f6a89607913f4babd (patch)
treea0555b78f80a1f5027ee3d198bac6326273be834 /Lib/logging
parentcbae8697599b690effd91be411fe4891ff8b52ad (diff)
downloadcpython-a9b2222de40ed62e6ec1c79f6a89607913f4babd.zip
cpython-a9b2222de40ed62e6ec1c79f6a89607913f4babd.tar.gz
cpython-a9b2222de40ed62e6ec1c79f6a89607913f4babd.tar.bz2
change a few uses of the threading APIs
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 9b91b9c..ae001db 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -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