From 00b7f921f214eeb25f0f04c85b4ff1fd56dc4c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Tue, 11 Feb 2020 13:56:59 +0000 Subject: [PATCH] only info if during discovery fail to query a executable (#1574) Signed-off-by: Bernat Gabor --- docs/changelog/1574.bugfix.rst | 3 +++ src/virtualenv/discovery/cached_py_info.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 docs/changelog/1574.bugfix.rst diff --git a/docs/changelog/1574.bugfix.rst b/docs/changelog/1574.bugfix.rst new file mode 100644 index 000000000..af5a17ea9 --- /dev/null +++ b/docs/changelog/1574.bugfix.rst @@ -0,0 +1,3 @@ +While discovering a python executables interpreters that cannot be queried are now displayed with info level rather +than warning, so now they're no longer shown by default (these can be just executables to which we don't have access +or that are broken, don't warn if it's not the target Python we want) - by :user:`gaborbernat`. diff --git a/src/virtualenv/discovery/cached_py_info.py b/src/virtualenv/discovery/cached_py_info.py index 73b2310de..7e28018fd 100644 --- a/src/virtualenv/discovery/cached_py_info.py +++ b/src/virtualenv/discovery/cached_py_info.py @@ -36,7 +36,7 @@ def from_exe(cls, exe, raise_on_error=True, ignore_cache=False): if raise_on_error: raise result else: - logging.warning("%s", str(result)) + logging.info("%s", str(result)) result = None return result