get_events: Log queue ID in home and get_events requests.

(imported from commit 8be1427c6c9ec3d1eb4a02f3c6ad5c2726542596)
This commit is contained in:
Tim Abbott 2013-11-07 15:40:23 -05:00
parent 1a97f194e9
commit 3b41e79074
3 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class ClientDescriptor(object):
self.event_queue.push(event)
if self.current_handler is not None:
try:
self.current_handler._request._extra_log_data = "[%s/1]" % (self.event_queue.id,)
self.current_handler.zulip_finish(dict(result='success', msg='',
events=[event],
queue_id=self.event_queue.id),

View File

@ -64,6 +64,7 @@ def get_events_backend(request, user_profile, handler = None,
ret = {'events': client.event_queue.contents()}
if orig_queue_id is None:
ret['queue_id'] = queue_id
request._extra_log_data = "[%s/%s]" % (queue_id, len(ret["events"]))
return json_success(ret)
handler._request = request

View File

@ -711,6 +711,7 @@ def home(request):
(not user_profile.email.lower().endswith("@customer4.invalid"))):
show_invites = False
request._extra_log_data = "[%s]" % (register_ret["queue_id"],)
response = render_to_response('zerver/index.html',
{'user_profile': user_profile,
'page_params' : page_params,