various: tiny cleanup

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I312766a6178be3898b51c2863f502bb06a6a6964
This commit is contained in:
raf 2026-02-15 23:31:04 +03:00
commit b745550011
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 2 additions and 2 deletions

View file

@ -453,7 +453,7 @@ pub async fn validate_session(
.execute(pool)
.await
{
tracing::warn!("Failed to update session last_used_at: {e}");
tracing::warn!(token_hash = %token_hash, "Failed to update session last_used_at: {e}");
}
}

View file

@ -89,7 +89,7 @@ impl AppState {
let before = sessions.len();
sessions
.retain(|_, session| session.created_at.elapsed() < SESSION_MAX_AGE);
let evicted = before - sessions.len();
let evicted = before.saturating_sub(sessions.len());
if evicted > 0 {
tracing::debug!(
evicted = evicted,