summary refs log tree commit diff
path: root/synapse/handlers/typing.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-12-11 18:00:15 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-12-11 18:00:15 +0000
commit966c4b2b04fe5dcaa53a6b33b86ac9dbc6f94eb2 (patch)
tree58fbd144cd15f0081df155485d65e47f5d6fd92a /synapse/handlers/typing.py
parentMove typing-notification REST tests into their own .py file (diff)
downloadsynapse-966c4b2b04fe5dcaa53a6b33b86ac9dbc6f94eb2.tar.xz
Add a sprinkling of logger.debug() into typing notification handler
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r--synapse/handlers/typing.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py
index c2b890261a..c55221c6df 100644
--- a/synapse/handlers/typing.py
+++ b/synapse/handlers/typing.py
@@ -67,6 +67,10 @@ class TypingNotificationHandler(BaseHandler):
         if target_user != auth_user:
             raise AuthError(400, "Cannot set another user's typing state")
 
+        logger.debug(
+            "%s has started typing in %s", target_user.to_string(), room_id
+        )
+
         until = self.clock.time_msec() + timeout
         member = RoomMember(room_id=room_id, user=target_user)
 
@@ -98,6 +102,10 @@ class TypingNotificationHandler(BaseHandler):
         if target_user != auth_user:
             raise AuthError(400, "Cannot set another user's typing state")
 
+        logger.debug(
+            "%s has stopped typing in %s", target_user.to_string(), room_id
+        )
+
         member = RoomMember(room_id=room_id, user=target_user)
 
         yield self._stopped_typing(member)