From 6e2e679a0eb6c70c4c62bb33d177ac029f3836d8 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Thu, 26 Sep 2024 15:06:39 -0400 Subject: [PATCH] chore(oauth): add additional logging to login routine --- src/oauth.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oauth.rs b/src/oauth.rs index 3648feb..48a37fb 100644 --- a/src/oauth.rs +++ b/src/oauth.rs @@ -97,6 +97,8 @@ impl Oauth { let client: client::Client<_, Body> = CLIENT.clone(); let resp = client.request(request).await.ok()?; + trace!("Received response with status {} and length {:?}", resp.status(), resp.headers().get("content-length")); + // Parse headers - loid header _should_ be saved sent on subsequent token refreshes. // Technically it's not needed, but it's easy for Reddit API to check for this. // It's some kind of header that uniquely identifies the device.