Skip to content
Snippets Groups Projects
Commit 966c4b2b authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Add a sprinkling of logger.debug() into typing notification handler

parent 6e153168
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment