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

Commit 2263b11

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 9b94ca5 commit 2263b11

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
@@ -1575,7 +1575,11 @@ async def _check_event_auth(
15751575
try:
15761576
check_auth_rules_for_event(room_version_obj, event, calculated_auth_events)
15771577
except AuthError as e:
1578-
logger.warning("Failed auth resolution for %r because %s", event, e)
1578+
logger.warning(
1579+
"While checking auth of %r against room state before the event: %s",
1580+
event,
1581+
e,
1582+
)
15791583
context.rejected = RejectedReason.AUTH_ERROR
15801584

15811585
return context

0 commit comments

Comments
 (0)