fix(log): stop logging Last.fm auth token prefixes

Request-token material must never appear in support log bundles.
This commit is contained in:
Afonso Jorge Ramos committed 2026-07-14 13:33:04 +02:00
1 parent bf29892aa4
commit 96672a459d
1 file changed
+3 -4
+3 -4
View File
@@ -100,10 +100,9 @@ impl LastFmClient {
///
/// Call this after the user has visited the auth_url from `get_token`.
pub async fn get_session(&mut self, token: &str) -> IntegrationResult<LastFmSession> {
log::info!(
"Getting Last.fm session with token: {}...",
&token[..token.len().min(8)]
);
// Never log request-token material (even a prefix) — support log
// bundles must not carry auth substrings.
log::info!("Requesting Last.fm session");
let url = format!("{}/auth.getSession", LASTFM_PROXY_URL);