diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-08 19:53:34 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-08 19:53:34 +0100 |
commit | 2236ef6c92b7964665f5c43b941754d70aa506d8 (patch) | |
tree | 5befd0effe712d4c4af6264346769f57c9486060 /synapse/handlers/_base.py | |
parent | Add some docs (diff) | |
download | synapse-2236ef6c92b7964665f5c43b941754d70aa506d8.tar.xz |
Fix up leak. Add warnings.
Diffstat (limited to 'synapse/handlers/_base.py')
-rw-r--r-- | synapse/handlers/_base.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py index 4b3f4eadab..ddc5c21e7d 100644 --- a/synapse/handlers/_base.py +++ b/synapse/handlers/_base.py @@ -20,6 +20,8 @@ from synapse.crypto.event_signing import add_hashes_and_signatures from synapse.api.constants import Membership, EventTypes from synapse.types import UserID +from synapse.util.logcontext import PreserveLoggingContext + import logging @@ -137,10 +139,11 @@ class BaseHandler(object): "Failed to get destination from event %s", s.event_id ) - # Don't block waiting on waking up all the listeners. - notify_d = self.notifier.on_new_room_event( - event, extra_users=extra_users - ) + with PreserveLoggingContext(): + # Don't block waiting on waking up all the listeners. + notify_d = self.notifier.on_new_room_event( + event, extra_users=extra_users + ) def log_failure(f): logger.warn( |