summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorLucas Cimon <lucas.cimon@gmail.com>2019-10-31 08:06:25 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2019-10-31 08:06:25 (GMT)
commitb15100fe7def8580c78ed16f0bb4b72b2ae7af3f (patch)
treef65caddb35b979e84b8cc1ecd09995b6769c1ea8 /Lib/logging
parent79d4ed102a5069c6cebaed2627cb1645637f0429 (diff)
downloadcpython-b15100fe7def8580c78ed16f0bb4b72b2ae7af3f.zip
cpython-b15100fe7def8580c78ed16f0bb4b72b2ae7af3f.tar.gz
cpython-b15100fe7def8580c78ed16f0bb4b72b2ae7af3f.tar.bz2
bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index 9dd35e1..4a3b896 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -143,6 +143,7 @@ def _install_handlers(cp, formatters):
kwargs = section.get("kwargs", '{}')
kwargs = eval(kwargs, vars(logging))
h = klass(*args, **kwargs)
+ h.name = hand
if "level" in section:
level = section["level"]
h.setLevel(level)