From aca065e1c1e48594f6f6f6eaa35e66b9f51d0be3 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 9 Apr 2020 20:27:24 -0700 Subject: [PATCH] logging_handlers: Remove spurious bare tuples. Signed-off-by: Anders Kaseorg --- zerver/logging_handlers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zerver/logging_handlers.py b/zerver/logging_handlers.py index 512de2bbe3..5b6539a0f0 100644 --- a/zerver/logging_handlers.py +++ b/zerver/logging_handlers.py @@ -30,9 +30,9 @@ def add_request_metadata(report: Dict[str, Any], request: HttpRequest) -> None: report['path'] = request.path report['method'] = request.method - report['remote_addr'] = request.META.get('REMOTE_ADDR', None), - report['query_string'] = request.META.get('QUERY_STRING', None), - report['server_name'] = request.META.get('SERVER_NAME', None), + report['remote_addr'] = request.META.get('REMOTE_ADDR', None) + report['query_string'] = request.META.get('QUERY_STRING', None) + report['server_name'] = request.META.get('SERVER_NAME', None) try: from django.contrib.auth.models import AnonymousUser user_profile = request.user