summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-28 15:30:42 +0100
committerErik Johnston <erik@matrix.org>2014-08-28 15:30:42 +0100
commite0ba81344c9f063ed4d9546ce316818b703866a9 (patch)
tree346eb3b301c210215b2920a8ea4219714e9d237f /synapse/handlers
parentAdd logging to try and figure out what is going on with the presence stuff (diff)
downloadsynapse-e0ba81344c9f063ed4d9546ce316818b703866a9.tar.xz
Add more logging. Up the event stream timer to 10s
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/events.py3
-rw-r--r--synapse/handlers/presence.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py
index 23bc0b6e28..f2df2175b6 100644
--- a/synapse/handlers/events.py
+++ b/synapse/handlers/events.py
@@ -98,8 +98,9 @@ class EventStreamHandler(BaseHandler):
                     )
                     del self._stop_timer_per_user[auth_user]
 
+                logger.debug("Scheduling _later: for %s", auth_user)
                 self._stop_timer_per_user[auth_user] = (
-                    self.clock.call_later(5, _later)
+                    self.clock.call_later(10, _later)
                 )
 
 
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 1be3845691..7741ed3171 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -517,6 +517,7 @@ class PresenceHandler(BaseHandler):
         )
 
     @defer.inlineCallbacks
+    @trace_function
     def push_presence(self, user, statuscache):
         assert(user.is_mine)
 
@@ -559,6 +560,7 @@ class PresenceHandler(BaseHandler):
             )
 
     @defer.inlineCallbacks
+    @trace_function
     def _send_presence_to_distribution(self, srcuser, localusers=set(),
             remotedomains=set(), statuscache=None):