From bca5f921d0b4872c5831419a7fa15cf601618fbe Mon Sep 17 00:00:00 2001 From: Garrett Smith Date: Wed, 5 Jun 2019 12:43:54 -0500 Subject: [PATCH 1/2] Log tags used for candidate evaluation Logged as debug so available only when --verbose option is used. --- src/pip/_internal/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pip/_internal/index.py b/src/pip/_internal/index.py index d6e30a483f6..1ddf2b5eaee 100644 --- a/src/pip/_internal/index.py +++ b/src/pip/_internal/index.py @@ -673,6 +673,10 @@ def create( abi=abi, impl=implementation, ) + logger.debug("Valid tags:") + with indent_log(): + for tags in valid_tags: + logger.debug(" ".join(tags)) candidate_evaluator = CandidateEvaluator( valid_tags=valid_tags, prefer_binary=prefer_binary, allow_all_prereleases=allow_all_prereleases, From cf6c6c27eb3c67bf0542f0b71e5c52b11f6b5dd5 Mon Sep 17 00:00:00 2001 From: Garrett Smith Date: Fri, 7 Jun 2019 06:10:42 -0500 Subject: [PATCH 2/2] Log valid tags in verbose mode on one line --- src/pip/_internal/index.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pip/_internal/index.py b/src/pip/_internal/index.py index 1ddf2b5eaee..09de1532450 100644 --- a/src/pip/_internal/index.py +++ b/src/pip/_internal/index.py @@ -673,10 +673,9 @@ def create( abi=abi, impl=implementation, ) - logger.debug("Valid tags:") - with indent_log(): - for tags in valid_tags: - logger.debug(" ".join(tags)) + logger.debug( + "Valid tags: %s", + ", ".join(["-".join(tag) for tag in valid_tags])) candidate_evaluator = CandidateEvaluator( valid_tags=valid_tags, prefer_binary=prefer_binary, allow_all_prereleases=allow_all_prereleases,