fix(contact): sanatize user-supplied data in logs
This commit is contained in:
@@ -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())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user