1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 20:14:19 +00:00

Log STRATZ response before it is parsed

This commit is contained in:
Steffo 2024-10-28 05:03:12 +01:00
parent ce1e216ece
commit c6358cb649
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -47,10 +47,14 @@ pub async fn query(client: &reqwest::Client, url: Url, guild_id: i64) -> QueryRe
.json(&body)
.send()
.await
.map_err(Error::Requesting)?
.map_err(Error::Requesting)?;
log::trace!("Parsing response: {response:#?}");
let data = response
.json::<QueryResponse>()
.await
.map_err(Error::Parsing)?;
Ok(response)
log::trace!("Returning data: {data:#?}");
Ok(data)
}