summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-15 13:48:40 +0000
committerErik Johnston <erik@matrix.org>2016-03-15 13:48:40 +0000
commite5f0e5893127b9474ed8ea38827a9d143cbff1e8 (patch)
tree80066c8d52c7f7896ff88bbe4fee8fb4cd113d12 /synapse/handlers/federation.py
parentPersist rejection of invites over federation (diff)
downloadsynapse-e5f0e5893127b9474ed8ea38827a9d143cbff1e8.tar.xz
Remove needless PreserveLoggingContext
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 86ed37e9f3..f599e817aa 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -823,11 +823,10 @@ class FederationHandler(BaseHandler):
         )
 
         target_user = UserID.from_string(event.state_key)
-        with PreserveLoggingContext():
-            self.notifier.on_new_room_event(
-                event, event_stream_id, max_stream_id,
-                extra_users=[target_user],
-            )
+        self.notifier.on_new_room_event(
+            event, event_stream_id, max_stream_id,
+            extra_users=[target_user],
+        )
 
         defer.returnValue(event)