From 30dc7a2f71e34ce431435acdc21c170c86c677b0 Mon Sep 17 00:00:00 2001 From: ymgyt Date: Mon, 18 Mar 2024 23:32:20 +0900 Subject: [PATCH] chore(term): set log level for the credential restore process to debug --- crates/synd_term/src/auth/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/synd_term/src/auth/mod.rs b/crates/synd_term/src/auth/mod.rs index 505117c4..116cddf8 100644 --- a/crates/synd_term/src/auth/mod.rs +++ b/crates/synd_term/src/auth/mod.rs @@ -49,7 +49,7 @@ impl Credential { path: &Path, jwt_service: &JwtService, ) -> Result { - tracing::info!( + debug!( path = path.display().to_string(), "Restore credential from cache" ); @@ -69,12 +69,11 @@ impl Credential { if !claims.email_verified { return Err(CredentialError::GoogleJwtEmailNotVerified); } - tracing::info!("{claims:?}"); if !claims.is_expired(Utc::now()) { return Ok(credential); } - tracing::info!("Google jwt expired, trying to refresh"); + debug!("Google jwt expired, trying to refresh"); let id_token = jwt_service .google @@ -89,7 +88,7 @@ impl Credential { persist_credential(&credential).map_err(CredentialError::PersistCredential)?; - tracing::info!("Persist refreshed credential"); + debug!("Persist refreshed credential"); Ok(credential) }