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
pull/4841/head
Mike Fährmann 10 months ago
parent 07cb584231
commit b714df5a16
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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

Loading…
Cancel
Save