fix(contact): sanatize user-supplied data in logs
This commit is contained in:
@@ -182,9 +182,10 @@ impl ContactApi {
|
||||
Ok(()) => {
|
||||
tracing::event!(
|
||||
target: "backend::contact",
|
||||
tracing::Level::INFO, "Message from \"{} <{}>\" sent successfully",
|
||||
body.name,
|
||||
body.email
|
||||
tracing::Level::INFO,
|
||||
name = %body.name,
|
||||
email = %body.email,
|
||||
"Contact form message sent successfully"
|
||||
);
|
||||
ContactApiResponse::Ok(ContactResponse::success().into())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user