feat(audit): show trace with HTTP's client_ip and user if logged in + add support of trusted proxy via CIDR

This commit is contained in:
Edouard Vanbelle
2026-04-26 02:27:45 +02:00
parent e4ea2211ea
commit 8e1a738056
8 changed files with 308 additions and 56 deletions
@@ -43,7 +43,11 @@ pub async fn get_favorites(
match favorites_service.get_favorites(user_id).await {
Ok(favorites) => {
info!("Retrieved {} favorites for user", favorites.len());
info!(
"Retrieved {} favorites for user {}",
favorites.len(),
auth_user.id
);
(StatusCode::OK, Json(serde_json::json!(favorites))).into_response()
}
Err(err) => {