decorator: Add logging data to zulip_login_required.

This fixes an issue that many logged=in pages such as /stats did not
correctly report either the connecting client or the user in server
logs.
This commit is contained in:
Tim Abbott
2017-02-20 11:55:18 -08:00
parent d4206f2f5f
commit 20f9c04ab5
4 changed files with 15 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ from django.http import HttpRequest, HttpResponse, HttpResponseForbidden, FileRe
from django.shortcuts import redirect
from django.utils.translation import ugettext as _
from zerver.decorator import authenticated_json_post_view, zulip_login_required
from zerver.decorator import authenticated_json_post_view
from zerver.lib.request import has_request_variables, REQ
from zerver.lib.response import json_success, json_error
from zerver.lib.upload import upload_message_image_from_request, get_local_file_path, \