Don't run curl in verbose mode when --verbose set (flutter/engine#30170)

In download_dart_sdk.py, we previously ran curl with the --verbose flag
when the --verbose flag was passed to the script. This generates vast
quantities of output that is unlikely to be valuable except if we're
attempting to debug a curl download issue. In such a case we could
perhaps pass a separate --verbose-download flag as well.

Issue: https://github.com/flutter/flutter/issues/94492
This commit is contained in:
Chris Bracken
2021-12-07 11:06:58 -08:00
committed by GitHub
parent 018966313c
commit 74e90fc817

View File

@@ -108,7 +108,6 @@ def DownloadDartSDK(channel, version, os_name, arch, verbose):
url,
]
if verbose:
curl_command.append('--verbose')
print('Running: "%s"' % (' '.join(curl_command)))
curl_result = subprocess.run(
curl_command,