From 36f156588447ec1a8d87b46d276a7e1e85d6617d Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 29 Jun 2021 17:14:40 -0500 Subject: [PATCH] Remove debug lines --- synapse/event_auth.py | 10 ---------- synapse/rest/client/v1/room.py | 1 - 2 files changed, 11 deletions(-) diff --git a/synapse/event_auth.py b/synapse/event_auth.py index 4c8268647a..33d7c60241 100644 --- a/synapse/event_auth.py +++ b/synapse/event_auth.py @@ -342,17 +342,7 @@ def _is_membership_change_allowed( # * They are accepting a previously sent invitation. # * They are already joined (it's a NOOP). # * The room is public or restricted. - logger.info( - "check join aewffaewafewf %s %s", - event.user_id, - target_user_id, - ) if event.user_id != target_user_id: - logger.error( - "Cannot force another user to join aewffaewafewf %s %s", - event.user_id, - target_user_id, - ) raise AuthError(403, "Cannot force another user to join.") elif target_banned: raise AuthError(403, "You are banned from this room") diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py index 3470813fa0..5c8961509e 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -14,7 +14,6 @@ # limitations under the License. """ This module contains REST servlets to do with rooms: /rooms/ """ -import copy import logging import re from typing import TYPE_CHECKING, Dict, List, Optional, Tuple