Improve debug! logging in download_and_extract

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-12 17:08:22 +10:00
parent f25306ff97
commit e39549f470
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -71,7 +71,7 @@ pub async fn download_and_extract<P: AsRef<Path>>(
let resp = create_request(url).await?;
let path = path.as_ref();
debug!("Downloading to file: '{}'", path.display());
debug!("Downloading and extracting to: '{}'", path.display());
let stream = resp.bytes_stream();
@ -81,7 +81,7 @@ pub async fn download_and_extract<P: AsRef<Path>>(
PkgFmtDecomposed::Zip => extract_zip(stream, path).await?,
}
debug!("Download OK, written to file: '{}'", path.display());
debug!("Download OK, extracted to: '{}'", path.display());
Ok(())
}