A decentralized music tracking and discovery platform built on AT Protocol 🎵

feat: improve error logging in refresh_token function

+4 -2
+4 -2
crates/spotify/src/lib.rs
··· 263 263 .send() 264 264 .await?; 265 265 let body = response.text().await?; 266 - println!("client_id: {}", client_id); 267 - println!("Refresh token response body: {}", body); 266 + if body.contains("error") { 267 + tracing::warn!(client_id = %client_id, "Refresh token response body contains error"); 268 + tracing::error!(body = %body, "Refresh token response body"); 269 + } 268 270 let token = serde_json::from_str::<AccessToken>(&body)?; 269 271 Ok(token) 270 272 }