add debug print to get_body
This commit is contained in:
parent
1452dfb265
commit
bd26533ae2
@ -106,6 +106,11 @@ pub async fn get_body(url: &str) -> Result<Vec<u8>, String> {
|
|||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(res) => {
|
Ok(res) => {
|
||||||
|
println!(
|
||||||
|
"[DEBUG] {} {}",
|
||||||
|
res.status().to_string().bright_yellow(),
|
||||||
|
url.bright_yellow()
|
||||||
|
);
|
||||||
let body = res.bytes().await.or(Err("Failed to get body"))?;
|
let body = res.bytes().await.or(Err("Failed to get body"))?;
|
||||||
Ok(body.to_vec())
|
Ok(body.to_vec())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user