Skip to content
This repository was archived by the owner on Feb 26, 2019. It is now read-only.

Commit de2ad52

Browse files
try @lukpueh trick
1 parent 9ee3560 commit de2ad52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/pip/_internal/download.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,7 @@ def download(self, target_relpath, dest_dir, dest_filename):
389389
# You may turn toggle this behaviour using the "enable_logging" flag in the
390390
# TUF configuration file.
391391
tuf.settings.ENABLE_FILE_LOGGING = False
392-
tuf.log._DEFAULT_LOG_LEVEL = logging.WARNING
393-
tuf.log._DEFAULT_CONSOLE_LOG_LEVEL = logging.WARNING
394-
tuf.log.remove_console_handler()
392+
logging.getLogger("tuf").setLevel(logging.WARNING)
395393
from tuf.client.updater import Updater
396394

397395
from in_toto import verifylib

0 commit comments

Comments
 (0)