Commit 53a07434 authored by Christophe Benz's avatar Christophe Benz
Browse files

Log more info

parent 1d65cfb1
......@@ -36,13 +36,13 @@ log = logging.Logger(__name__)
def download_binary_file(url, file_path: Path):
""" Download url into binary file """
log.debug("Downloading %s... ", file_path.name)
log.info("Downloading %s from %s ... ", str(file_path), url)
req = requests.get(url, stream=True)
with file_path.open('wb') as fout:
req.raw.decode_content = True
shutil.copyfileobj(req.raw, fout)
log.debug('-> done.')
log.info('-> done.')
def download_and_extract(url, target_dir: Path, dir_name):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment