logging_handlers: Remove spurious bare tuples.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-04-09 20:27:24 -07:00 committed by Tim Abbott
parent 03e147d5e1
commit aca065e1c1
1 changed files with 3 additions and 3 deletions

View File

@ -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