summary refs log tree commit diff
path: root/synapse/handlers/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-28 14:58:51 +0100
committerErik Johnston <erik@matrix.org>2014-08-28 14:58:51 +0100
commitb8b52ca09d76e14854535df9a93b25096fcbd36a (patch)
tree3e9f53ff58047e43dc85a9ef636ae05c21660619 /synapse/handlers/events.py
parentFix bug where we used UserID objects instead of strigns (diff)
downloadsynapse-b8b52ca09d76e14854535df9a93b25096fcbd36a.tar.xz
Add logging to try and figure out what is going on with the presence stuff
Diffstat (limited to 'synapse/handlers/events.py')
-rw-r--r--synapse/handlers/events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py
index e08231406d..23bc0b6e28 100644
--- a/synapse/handlers/events.py
+++ b/synapse/handlers/events.py
@@ -16,6 +16,7 @@
 from twisted.internet import defer
 
 from synapse.api.events import SynapseEvent
+from synapse.util.logutils import log_function
 
 from ._base import BaseHandler
 
@@ -44,6 +45,7 @@ class EventStreamHandler(BaseHandler):
         self.notifier = hs.get_notifier()
 
     @defer.inlineCallbacks
+    @log_function
     def get_stream(self, auth_user_id, pagin_config, timeout=0):
         auth_user = self.hs.parse_userid(auth_user_id)
 
@@ -90,6 +92,7 @@ class EventStreamHandler(BaseHandler):
                 # 10 seconds of grace to allow the client to reconnect again
                 #   before we think they're gone
                 def _later():
+                    logger.debug("_later stopped_user_eventstream %s", auth_user)
                     self.distributor.fire(
                         "stopped_user_eventstream", auth_user
                     )