Skip to content

Commit

Permalink
Make location mismatch messages DEBUG level
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Apr 30, 2021
1 parent 7a77484 commit f56ec32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions news/9912.removal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Temporarily set the new "Value for ... does not match" location warnings level
to *DEBUG*, to hide them from casual users. This prepares pip 21.1 for CPython
inclusion, while pip maintainers digest the first intake of location mismatch
issues for the ``distutils``-``sysconfig`` trasition.
4 changes: 2 additions & 2 deletions src/pip/_internal/locations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _warn_if_mismatch(old: pathlib.Path, new: pathlib.Path, *, key: str) -> bool
"\ndistutils: %s"
"\nsysconfig: %s"
)
logger.warning(message, key, issue_url, old, new)
logger.debug(message, key, issue_url, old, new)
return True


Expand All @@ -65,7 +65,7 @@ def _log_context(
message = (
"Additional context:" "\nuser = %r" "\nhome = %r" "\nroot = %r" "\nprefix = %r"
)
logger.warning(message, user, home, root, prefix)
logger.debug(message, user, home, root, prefix)


def get_scheme(
Expand Down

0 comments on commit f56ec32

Please sign in to comment.