fix(contact): sanatize user-supplied data in logs

This commit is contained in:
2026-06-01 23:58:23 +02:00
parent 2216d7da58
commit 9f576d7509
+4 -3
View File
@@ -182,9 +182,10 @@ impl ContactApi {
Ok(()) => { Ok(()) => {
tracing::event!( tracing::event!(
target: "backend::contact", target: "backend::contact",
tracing::Level::INFO, "Message from \"{} <{}>\" sent successfully", tracing::Level::INFO,
body.name, name = %body.name,
body.email email = %body.email,
"Contact form message sent successfully"
); );
ContactApiResponse::Ok(ContactResponse::success().into()) ContactApiResponse::Ok(ContactResponse::success().into())
} }