From 4169eec22b8010f91e75cc85c63e284ebc753a68 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Tue, 4 Apr 2023 20:05:29 +0200 Subject: [PATCH] some more logs --- Cargo.toml | 2 +- src/lib.rs | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 70ce30b..171bf18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "twitch_data" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/lib.rs b/src/lib.rs index 3866eb6..5f2d38f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -304,11 +304,14 @@ impl<'a> TwitchClient<'a> { .build()?; let res = check_backoff_twitch_with_client(request, &self.reqwest_client).await?; // let res = self.reqwest_client.execute(request).await?; - + trace!("get_video_token_and_signature: Got response: {:?}", res); let j = res.text().await?; - + debug!("get_video_token_and_signature: Response body: {}", j); let json: TwitchVideoAccessTokenResponse = serde_json::from_str(&j)?; - + trace!( + "get_video_token_and_signature: Got video token and signature: {:?}", + json + ); Ok(( json.data.videoPlaybackAccessToken.value, json.data.videoPlaybackAccessToken.signature,