Skip to content

Commit

Permalink
Added some debug information for packages that are fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
john-sharratt authored and theduke committed Feb 27, 2023
1 parent 8546b41 commit 5647dc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wasi/src/wapm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ async fn fetch_webc(
.replace(WAPM_WEBC_VERSION_TAG, version.replace('\"', "'").as_str()),
None => WAPM_WEBC_QUERY_LAST.replace(WAPM_WEBC_QUERY_TAG, name.replace('\"', "'").as_str()),
};
debug!("request: {}", url_query);

let url = format!(
"{}{}",
WAPM_WEBC_URL,
Expand All @@ -84,6 +86,8 @@ async fn fetch_webc(
let body = response.body.context("HTTP response with empty body")?;
let data: WapmWebQuery =
serde_json::from_slice(&body).context("Could not parse webc registry JSON data")?;
debug!("response: {:?}", data);

let PiritaVersionedDownload {
url: download_url,
version,
Expand Down

0 comments on commit 5647dc2

Please sign in to comment.