summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-06-10 11:46:20 +0100
committerDavid Robertson <davidr@element.io>2022-06-15 17:23:27 +0100
commita8f52a1973dfb4616ffccc38e9f28ddf34db5d31 (patch)
tree74ac37b8187f5c406bea2a0819acbd2f0afee997
parentMore debug info (diff)
downloadsynapse-a8f52a1973dfb4616ffccc38e9f28ddf34db5d31.tar.xz
Suppress `is_membership_change_allowed`
-rw-r--r--synapse/event_auth.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py
index e23503c1e0..c412b2639f 100644
--- a/synapse/event_auth.py
+++ b/synapse/event_auth.py
@@ -348,20 +348,20 @@ def _is_membership_change_allowed(
     invite_level = get_named_level(auth_events, "invite", 0)
     ban_level = get_named_level(auth_events, "ban", 50)
 
-    logger.debug(
-        "_is_membership_change_allowed: %s",
-        {
-            "caller_in_room": caller_in_room,
-            "caller_invited": caller_invited,
-            "caller_knocked": caller_knocked,
-            "target_banned": target_banned,
-            "target_in_room": target_in_room,
-            "membership": membership,
-            "join_rule": join_rule,
-            "target_user_id": target_user_id,
-            "event.user_id": event.user_id,
-        },
-    )
+    # logger.debug(
+    #     "_is_membership_change_allowed: %s",
+    #     {
+    #         "caller_in_room": caller_in_room,
+    #         "caller_invited": caller_invited,
+    #         "caller_knocked": caller_knocked,
+    #         "target_banned": target_banned,
+    #         "target_in_room": target_in_room,
+    #         "membership": membership,
+    #         "join_rule": join_rule,
+    #         "target_user_id": target_user_id,
+    #         "event.user_id": event.user_id,
+    #     },
+    # )
 
     if Membership.INVITE == membership and "third_party_invite" in event.content:
         if not _verify_third_party_invite(event, auth_events):