From aa2575be3eca0a7c9008a858557c0c8fc6785d0a Mon Sep 17 00:00:00 2001 From: lafleur Date: Sat, 10 May 2025 21:09:05 +0200 Subject: [PATCH] remove stale debugging logs I don't have the hd space to do debug builds, so I use tracing::info to debug on release builds. Silly, right ? --- src/api/client/oidc/login.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/api/client/oidc/login.rs b/src/api/client/oidc/login.rs index 1fe32501..bec9ab10 100644 --- a/src/api/client/oidc/login.rs +++ b/src/api/client/oidc/login.rs @@ -27,12 +27,10 @@ pub(crate) async fn oidc_login( if !services.users.exists(&user_id).await { return Err(err!(Request(Unknown("unknown username")))); } - tracing::info!("logging in: {user_id:?}"); let valid_hash = services .users .password_hash(&user_id) - .await - .inspect_err(|e| tracing::info!("could not get user's hash: {e:?}"))?; + .await?; if valid_hash.is_empty() { return Err(err!(Request(UserDeactivated("the user's hash was not found")))); @@ -40,7 +38,7 @@ pub(crate) async fn oidc_login( if verify_password(&query.password, &valid_hash).is_err() { return Err(err!(Request(InvalidParam("password does not match")))); } - tracing::info!("{user_id:?} passed, forwarding to consent page"); + tracing::info!("logging in: {user_id:?}"); let hostname = services .config