summaryrefslogtreecommitdiff
path: root/setuptools/logging.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-10-05 19:11:32 -0400
committerJason R. Coombs <jaraco@jaraco.com>2022-10-05 19:22:52 -0400
commit1546d40ae9cc26a3fa998d174984cda3ebbae4dd (patch)
treea144f662a0e345cdb6e625d49f7e534b674c76bd /setuptools/logging.py
parent2aaa95ef623c44c04eb5de484c78fc586b43abc6 (diff)
downloadpython-setuptools-git-1546d40ae9cc26a3fa998d174984cda3ebbae4dd.tar.gz
Remove hack around distutils.dist.log, no longer relevant with pypa/distutils#183.
Diffstat (limited to 'setuptools/logging.py')
-rw-r--r--setuptools/logging.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/setuptools/logging.py b/setuptools/logging.py
index 5d41c988..a902e3b9 100644
--- a/setuptools/logging.py
+++ b/setuptools/logging.py
@@ -24,12 +24,6 @@ def configure():
format="{message}", style='{', handlers=handlers, level=logging.DEBUG)
monkey.patch_func(set_threshold, distutils.log, 'set_threshold')
- # For some reason `distutils.log` module is getting cached in `distutils.dist`
- # and then loaded again when patched,
- # implying: id(distutils.log) != id(distutils.dist.log).
- # Make sure the same module object is used everywhere:
- distutils.dist.log = distutils.log
-
def set_threshold(level):
logging.root.setLevel(level*10)