From c6358cb6498b402a68f7b0e6ec0ac6fd8c906dd3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 28 Oct 2024 05:03:12 +0100 Subject: [PATCH] Log STRATZ response before it is parsed --- src/interfaces/stratz/guild_matches.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/interfaces/stratz/guild_matches.rs b/src/interfaces/stratz/guild_matches.rs index 1bbc4cdf..c87cbaca 100644 --- a/src/interfaces/stratz/guild_matches.rs +++ b/src/interfaces/stratz/guild_matches.rs @@ -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::() .await .map_err(Error::Parsing)?; - Ok(response) + log::trace!("Returning data: {data:#?}"); + Ok(data) }