improved logging

This commit is contained in:
2026-01-15 22:58:39 +01:00
parent c27ddba0ff
commit 376353833c
6 changed files with 121 additions and 39 deletions

View File

@@ -279,7 +279,7 @@ async fn upload_avatar(
let claims = verify_jwt(headers)?;
let user_id = user_id_from_uuid(&db, claims.sub).await?;
tracing::info!("User ID {} is uploading {} bytes)", user_id, body.len());
tracing::debug!("User ID {} is uploading {} bytes)", user_id, body.len());
let base_dir = &config.avatar_dir;
let file_extension = "png"; // TODO: detect MIME type