mirror of https://github.com/zulip/zulip.git
get_events: Log queue ID in home and get_events requests.
(imported from commit 8be1427c6c9ec3d1eb4a02f3c6ad5c2726542596)
This commit is contained in:
parent
1a97f194e9
commit
3b41e79074
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue