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>,
|k, s| auth_events.get(&(k.clone(), s.to_owned())),
)
.map_err(|e| {
error!("{:?}", e);
Error::bad_database("Auth check failed.")
.map_err(|error| {
error!(%error, "Auth check failed");
Error::BadDatabase("Auth check failed.")
})?;
if !auth_check {