commit | b15100fe7def8580c78ed16f0bb4b72b2ae7af3f | [log] [tgz] |
---|---|---|
author | Lucas Cimon <lucas.cimon@gmail.com> | Thu Oct 31 09:06:25 2019 +0100 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Thu Oct 31 08:06:25 2019 +0000 |
tree | f65caddb35b979e84b8cc1ecd09995b6769c1ea8 | |
parent | 79d4ed102a5069c6cebaed2627cb1645637f0429 [diff] |
bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)
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 @@ 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)