From 91d0585000c96c2e8cced36ccd269566f732fd07 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Tue, 11 Jun 2024 03:17:19 +0300 Subject: [PATCH] feat: add a little bit of logging --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 3c946b2..c5a329b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,6 +120,7 @@ async fn fetch_safebooru_image_link(http: &reqwest::Client, url: &Uri) -> AppRes } let url = format!("https://safebooru.org/index.php?page=dapi&s=post&q=index&json=1&id={id}"); + println!("[safebooru] trying to fetch url: {url}"); let req = http.get(url).build()?; let resp = http.execute(req).await?.error_for_status()?; let data: Vec> = resp.json().await?; @@ -139,6 +140,7 @@ async fn fetch_twitter_image_link(http: &reqwest::Client, url: &Uri) -> AppResul .path_and_query(url.path_and_query().unwrap().clone()) .build()? .to_string(); + println!("[fxtwitter] trying to fetch url: {fxurl}"); let req = http.get(&fxurl).build()?; let resp = http.execute(req).await?.error_for_status()?; let link = resp