Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit dcf4c20

Browse files
committed
Improve logging when auth fails
This makes it more consistent with the logging when we check against the claimed auth events.
1 parent 2140243 commit dcf4c20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

synapse/handlers/federation_event.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,11 @@ async def _check_event_auth(
15781578
try:
15791579
check_state_dependent_auth_rules(event, calculated_auth_events)
15801580
except AuthError as e:
1581-
logger.warning("Failed auth resolution for %r because %s", event, e)
1581+
logger.warning(
1582+
"While checking auth of %r against room state before the event: %s",
1583+
event,
1584+
e,
1585+
)
15821586
context.rejected = RejectedReason.AUTH_ERROR
15831587

15841588
return context

0 commit comments

Comments
 (0)