summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/guzzle.rs10
-rw-r--r--src/api/shiggy.rs10
2 files changed, 4 insertions, 16 deletions
diff --git a/src/api/guzzle.rs b/src/api/guzzle.rs
index 83c159e..0533c8b 100644
--- a/src/api/guzzle.rs
+++ b/src/api/guzzle.rs
@@ -18,7 +18,7 @@ pub async fn get_random_teawie() -> Result<String> {
.get(format!("{GUZZLE}{RANDOM_TEAWIE}"))
.build()?;
- info!("making request to {}", req.url());
+ debug!("making request to {}", req.url());
let resp = REQWEST_CLIENT.execute(req).await?;
let status = resp.status();
@@ -26,12 +26,6 @@ pub async fn get_random_teawie() -> Result<String> {
let data = resp.json::<GuzzleResponse>().await?;
Ok(data.url)
} else {
- error!(
- "couldn't fetch random teawie from {}! {}",
- resp.url(),
- status
- );
-
- Err(eyre!("failed to get random teawie with {status}"))
+ Err(eyre!("Failed to get random Teawie with {status}"))
}
}
diff --git a/src/api/shiggy.rs b/src/api/shiggy.rs
index 7a582ee..1fe4b49 100644
--- a/src/api/shiggy.rs
+++ b/src/api/shiggy.rs
@@ -18,7 +18,7 @@ pub async fn get_random_shiggy() -> Result<String> {
.get(format!("{SHIGGY}{RANDOM_SHIGGY}"))
.build()?;
- info!("making request to {}", req.url());
+ debug!("Making request to {}", req.url());
let resp = REQWEST_CLIENT.execute(req).await?;
let status = resp.status();
@@ -26,12 +26,6 @@ pub async fn get_random_shiggy() -> Result<String> {
let data = resp.json::<SafebooruResponse>().await?;
Ok(data.file_url)
} else {
- error!(
- "couldn't fetch random teawie from {}! {}",
- resp.url(),
- status
- );
-
- Err(eyre!("failed to get random teawie with {status}"))
+ Err(eyre!("Failed to get random shiggy with {status}"))
}
}