1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Make location mismatch messages DEBUG level

This commit is contained in:
Tzu-ping Chung 2021-04-30 09:29:27 +08:00
parent 7a77484a49
commit f56ec327b9
2 changed files with 6 additions and 2 deletions

4
news/9912.removal.rst Normal file
View file

@ -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.

View file

@ -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
@ -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(