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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user