Skip to content

Commit

Permalink
configuration: Add back load_file verbose log instead of debug one
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahGorny committed Sep 7, 2021
1 parent 65f046d commit 2570d4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions news/10418.trivial.rst
@@ -0,0 +1 @@
Make _load_file log become verbose instead of debug.
6 changes: 3 additions & 3 deletions src/pip/_internal/configuration.py
Expand Up @@ -13,7 +13,6 @@

import configparser
import locale
import logging
import os
import sys
from typing import Any, Dict, Iterable, List, NewType, Optional, Tuple
Expand All @@ -24,6 +23,7 @@
)
from pip._internal.utils import appdirs
from pip._internal.utils.compat import WINDOWS
from pip._internal.utils.logging import getLogger
from pip._internal.utils.misc import ensure_dir, enum

RawConfigParser = configparser.RawConfigParser # Shorthand
Expand All @@ -43,7 +43,7 @@
OVERRIDE_ORDER = kinds.GLOBAL, kinds.USER, kinds.SITE, kinds.ENV, kinds.ENV_VAR
VALID_LOAD_ONLY = kinds.USER, kinds.GLOBAL, kinds.SITE

logger = logging.getLogger(__name__)
logger = getLogger(__name__)


# NOTE: Maybe use the optionx attribute to normalize keynames.
Expand Down Expand Up @@ -250,7 +250,7 @@ def _load_config_files(self) -> None:
self._parsers[variant].append((fname, parser))

def _load_file(self, variant: Kind, fname: str) -> RawConfigParser:
logger.debug("For variant '%s', will try loading '%s'", variant, fname)
logger.verbose("For variant '%s', will try loading '%s'", variant, fname)
parser = self._construct_parser(fname)

for section in parser.sections():
Expand Down

0 comments on commit 2570d4a

Please sign in to comment.