diff options
author | David Robertson <davidr@element.io> | 2022-06-13 19:35:41 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-06-15 17:23:27 +0100 |
commit | 2baa1fcbe6bce701000c89b65d38d47cc62865d5 (patch) | |
tree | c3bc8e97ab557b4b5bbf72f0db4cb7dea7b1a25e | |
parent | tweak logging (diff) | |
download | synapse-2baa1fcbe6bce701000c89b65d38d47cc62865d5.tar.xz |
debug
-rw-r--r-- | synapse/state/v2.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/synapse/state/v2.py b/synapse/state/v2.py index c605cac2a2..b363047332 100644 --- a/synapse/state/v2.py +++ b/synapse/state/v2.py @@ -588,7 +588,13 @@ async def _iterative_auth_checks( try: if _is_power_event(event): - logger.warning("Considering power event %s %s %s %s", event.event_id, event.type, event.state_key, pformat(event.content)) + logger.warning( + "Considering power event %s %s %s %s", + event.event_id, + event.type, + event.state_key, + pformat(event.content), + ) event_auth.check_auth_rules_for_event( event, @@ -606,7 +612,9 @@ async def _iterative_auth_checks( resolved_state[(event.type, event.state_key)] = event_id except AuthError as e: if _is_power_event(event): - logger.debug("Rejecting %s from %s: %s", event.event_id, event.sender, e) + logger.debug( + "Rejecting %s from %s: %s", event.event_id, event.sender, e + ) # We await occasionally when we're working with large data sets to # ensure that we don't block the reactor loop for too long. |