From bd26533ae2781272883450090e70357a13e23f48 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Tue, 20 Feb 2024 19:44:11 +0100 Subject: [PATCH] add debug print to get_body --- src/http_async.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/http_async.rs b/src/http_async.rs index d0895c7..35b6b8d 100644 --- a/src/http_async.rs +++ b/src/http_async.rs @@ -106,6 +106,11 @@ pub async fn get_body(url: &str) -> Result, String> { .await { Ok(res) => { + println!( + "[DEBUG] {} {}", + res.status().to_string().bright_yellow(), + url.bright_yellow() + ); let body = res.bytes().await.or(Err("Failed to get body"))?; Ok(body.to_vec()) }