disable 'downloader.progress' when using -q/--quiet (#4810)

it didn't produce any output since output.mode is set to to "null",
but it caused some unnecessary function calls
This commit is contained in:
Mike Fährmann
2023-11-18 01:16:49 +01:00
parent 07cb584231
commit b714df5a16

View File

@@ -115,6 +115,7 @@ def main():
output.configure_logging(args.loglevel)
if args.loglevel >= logging.ERROR:
config.set(("output",), "mode", "null")
config.set(("downloader",), "progress", None)
elif args.loglevel <= logging.DEBUG:
import platform
import requests