mirror of https://github.com/zulip/zulip.git
logging_handlers: Remove spurious bare tuples.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
03e147d5e1
commit
aca065e1c1
|
@ -30,9 +30,9 @@ def add_request_metadata(report: Dict[str, Any], request: HttpRequest) -> None:
|
||||||
|
|
||||||
report['path'] = request.path
|
report['path'] = request.path
|
||||||
report['method'] = request.method
|
report['method'] = request.method
|
||||||
report['remote_addr'] = request.META.get('REMOTE_ADDR', None),
|
report['remote_addr'] = request.META.get('REMOTE_ADDR', None)
|
||||||
report['query_string'] = request.META.get('QUERY_STRING', None),
|
report['query_string'] = request.META.get('QUERY_STRING', None)
|
||||||
report['server_name'] = request.META.get('SERVER_NAME', None),
|
report['server_name'] = request.META.get('SERVER_NAME', None)
|
||||||
try:
|
try:
|
||||||
from django.contrib.auth.models import AnonymousUser
|
from django.contrib.auth.models import AnonymousUser
|
||||||
user_profile = request.user
|
user_profile = request.user
|
||||||
|
|
Loading…
Reference in New Issue