don't log twice, make event structured

This commit is contained in:
Charles Hall 2024-06-24 12:43:00 -07:00
parent e83a30af4b
commit 32e6b3b039
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -786,9 +786,9 @@ impl Service {
None::<PduEvent>, None::<PduEvent>,
|k, s| auth_events.get(&(k.clone(), s.to_owned())), |k, s| auth_events.get(&(k.clone(), s.to_owned())),
) )
.map_err(|e| { .map_err(|error| {
error!("{:?}", e); error!(%error, "Auth check failed");
Error::bad_database("Auth check failed.") Error::BadDatabase("Auth check failed.")
})?; })?;
if !auth_check { if !auth_check {