Skip to content

Commit

Permalink
Update setuptools/logging.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jason R. Coombs <[email protected]>
  • Loading branch information
abravalheri and jaraco committed Jan 24, 2022
1 parent 633171c commit 711b526
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setuptools/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def configure():
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 we have the opportunity to patch it.
# This implies: id(distutils.log) != id(distutils.dist.log).
# We need to make sure the same module object is used everywhere:
# 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


Expand Down

0 comments on commit 711b526

Please sign in to comment.