From 966c4b2b04fe5dcaa53a6b33b86ac9dbc6f94eb2 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Thu, 11 Dec 2014 18:00:15 +0000 Subject: [PATCH] Add a sprinkling of logger.debug() into typing notification handler --- synapse/handlers/typing.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py index c2b890261..c55221c6d 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)