mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-22 02:54:21 +00:00
Log STRATZ response before it is parsed
This commit is contained in:
parent
ce1e216ece
commit
c6358cb649
1 changed files with 6 additions and 2 deletions
|
@ -47,10 +47,14 @@ pub async fn query(client: &reqwest::Client, url: Url, guild_id: i64) -> QueryRe
|
||||||
.json(&body)
|
.json(&body)
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
.map_err(Error::Requesting)?
|
.map_err(Error::Requesting)?;
|
||||||
|
|
||||||
|
log::trace!("Parsing response: {response:#?}");
|
||||||
|
let data = response
|
||||||
.json::<QueryResponse>()
|
.json::<QueryResponse>()
|
||||||
.await
|
.await
|
||||||
.map_err(Error::Parsing)?;
|
.map_err(Error::Parsing)?;
|
||||||
|
|
||||||
Ok(response)
|
log::trace!("Returning data: {data:#?}");
|
||||||
|
Ok(data)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue