File tree 2 files changed +9
-3
lines changed
src/pip/_internal/operations
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ The metadata-fetching log message is moved to the VERBOSE level and now hidden
2
+ by default. The more significant information in this message to most users are
3
+ already available in surrounding logs (the package name and version of the
4
+ metadata being fetched), while the URL to the exact metadata file is generally
5
+ too long and clutters the output. The message can be brought back with
6
+ ``--verbose ``.
Original file line number Diff line number Diff line change 4
4
# The following comment should be removed at some point in the future.
5
5
# mypy: strict-optional=False
6
6
7
- import logging
8
7
import mimetypes
9
8
import os
10
9
import shutil
37
36
from pip ._internal .network .session import PipSession
38
37
from pip ._internal .operations .build .build_tracker import BuildTracker
39
38
from pip ._internal .req .req_install import InstallRequirement
39
+ from pip ._internal .utils ._log import getLogger
40
40
from pip ._internal .utils .direct_url_helpers import (
41
41
direct_url_for_editable ,
42
42
direct_url_from_link ,
53
53
from pip ._internal .utils .unpacking import unpack_file
54
54
from pip ._internal .vcs import vcs
55
55
56
- logger = logging . getLogger (__name__ )
56
+ logger = getLogger (__name__ )
57
57
58
58
59
59
def _get_prepared_distribution (
@@ -394,7 +394,7 @@ def _fetch_metadata_using_link_data_attr(
394
394
if metadata_link is None :
395
395
return None
396
396
assert req .req is not None
397
- logger .info (
397
+ logger .verbose (
398
398
"Obtaining dependency information for %s from %s" ,
399
399
req .req ,
400
400
metadata_link ,
You can’t perform that action at this time.
0 commit comments