mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
don't log twice, make event structured
This commit is contained in:
parent
e83a30af4b
commit
32e6b3b039
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue