auth: Add logging for which client does /server_settings requests.

This is generally helpful for debugging.
This commit is contained in:
Tim Abbott 2018-12-11 11:25:57 -08:00
parent 88368996fb
commit 2a39852e91
1 changed files with 2 additions and 0 deletions

View File

@ -851,6 +851,8 @@ def check_server_incompatibility(request: HttpRequest) -> bool:
@require_GET
@csrf_exempt
def api_get_server_settings(request: HttpRequest) -> HttpResponse:
# Log which client is making this request.
process_client(request, request.user, skip_update_user_activity=True)
result = dict(
authentication_methods=get_auth_backends_data(request),
zulip_version=ZULIP_VERSION,