some more logs

This commit is contained in:
OMGeeky
2023-04-04 20:05:29 +02:00
parent dd947a6087
commit 4169eec22b
2 changed files with 7 additions and 4 deletions

View File

@@ -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,