From 2a39852e916ae96ca9377435414ad82ac524c8ea Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 11 Dec 2018 11:25:57 -0800 Subject: [PATCH] auth: Add logging for which client does /server_settings requests. This is generally helpful for debugging. --- zerver/views/auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zerver/views/auth.py b/zerver/views/auth.py index 3080917ec7..7e3a7d258b 100644 --- a/zerver/views/auth.py +++ b/zerver/views/auth.py @@ -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,