Patch logging issue

This commit is contained in:
Lysandre
2020-08-31 09:37:08 +02:00
parent dfa10a41ba
commit 05c3214153

View File

@@ -757,7 +757,7 @@ def http_get(url, temp_file, proxies=None, resume_size=0, user_agent: Union[Dict
total=total,
initial=resume_size,
desc="Downloading",
disable=bool(logging.get_verbosity() > logging.NOTSET),
disable=bool(logging.get_verbosity() == logging.NOTSET),
)
for chunk in response.iter_content(chunk_size=1024):
if chunk: # filter out keep-alive new chunks