socket: Log the transport type on the authentication line

(imported from commit 7b3ae3ab38da35cbd60aca991665d40b41a7f78f)
This commit is contained in:
Zev Benjamin
2013-11-06 16:46:51 -05:00
parent b5c68371d0
commit e0fece4082

View File

@@ -103,7 +103,8 @@ class SocketConnection(sockjs.tornado.SockJSConnection):
self.session.send_message({'client_meta': msg['client_meta'],
'response': {'result': 'success', 'msg': ''}})
self.authenticated = True
fake_log_line(self.session.conn_info, 0, 200, "Authenticated", user_profile.email)
fake_log_line(self.session.conn_info, 0, 200, "Authenticated using %s" % (self.session.transport_name,),
user_profile.email)
ioloop = tornado.ioloop.IOLoop.instance()
ioloop.remove_timeout(self.timeout_handle)