Store logging data in a dict instead of individual attributes

(imported from commit f7d76670428d5d8298c572a23cbfffc1d9695f23)
This commit is contained in:
Zev Benjamin
2013-11-08 14:18:02 -05:00
parent 279b52b0f8
commit 53ec292022
4 changed files with 44 additions and 43 deletions

View File

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