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 ?
This commit is contained in:
lafleur 2025-05-10 21:09:05 +02:00 committed by nexy7574
parent dd2d08d3b1
commit 68b6a02f29
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -27,12 +27,10 @@ pub(crate) async fn oidc_login(
if !services.users.exists(&user_id).await { if !services.users.exists(&user_id).await {
return Err(err!(Request(Unknown("unknown username")))); return Err(err!(Request(Unknown("unknown username"))));
} }
tracing::info!("logging in: {user_id:?}");
let valid_hash = services let valid_hash = services
.users .users
.password_hash(&user_id) .password_hash(&user_id)
.await .await?;
.inspect_err(|e| tracing::info!("could not get user's hash: {e:?}"))?;
if valid_hash.is_empty() { if valid_hash.is_empty() {
return Err(err!(Request(UserDeactivated("the user's hash was not found")))); 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() { if verify_password(&query.password, &valid_hash).is_err() {
return Err(err!(Request(InvalidParam("password does not match")))); 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 let hostname = services
.config .config