summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-10-30 11:28:48 +0000
committerGitHub <noreply@github.com>2019-10-30 11:28:48 +0000
commita2276d4d3ca72896582ef24d01fdff6c01e38689 (patch)
tree0fd0700b680eb95d44879c451cf0c053a99213c5
parentUpdate CI to run isort on scripts and scripts-dev (#6270) (diff)
downloadsynapse-a2276d4d3ca72896582ef24d01fdff6c01e38689.tar.xz
Fix log line that was printing undefined value (#6278)
-rw-r--r--changelog.d/6278.bugfix1
-rw-r--r--synapse/handlers/federation.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/6278.bugfix b/changelog.d/6278.bugfix
new file mode 100644
index 0000000000..c107270461
--- /dev/null
+++ b/changelog.d/6278.bugfix
@@ -0,0 +1 @@
+Fix exception when remote servers attempt to join a room that they're not allowed to join.
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 488058fe68..2da520e6e8 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -1250,7 +1250,7 @@ class FederationHandler(BaseHandler):
                 builder=builder
             )
         except AuthError as e:
-            logger.warn("Failed to create join %r because %s", event, e)
+            logger.warn("Failed to create join to %s because %s", room_id, e)
             raise e
 
         event_allowed = yield self.third_party_event_rules.check_event_allowed(