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:
parent
7a77484a49
commit
f56ec327b9
4
news/9912.removal.rst
Normal file
4
news/9912.removal.rst
Normal 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.
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue