mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 21:48:42 +00:00
Improve debug!
logging in download_and_extract
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
f25306ff97
commit
e39549f470
1 changed files with 2 additions and 2 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue