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:
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)
|
||||
.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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue