chore: fix is_authenticated logging (#8266)

"o" instead of "i" to check response headers
This commit is contained in:
Jennifer Richards 2024-11-22 18:54:15 -04:00 committed by GitHub
parent 661945b638
commit ff5b2e12f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,4 +31,4 @@ class GunicornRequestJsonFormatter(DatatrackerJsonFormatter):
log_record.setdefault("cf_connecting_ip", record.args["{cf-connecting-ip}i"])
log_record.setdefault("cf_connecting_ipv6", record.args["{cf-connecting-ipv6}i"])
log_record.setdefault("cf_ray", record.args["{cf-ray}i"])
log_record.setdefault("is_authenticated", record.args["{x-datatracker-is-authenticated}i"])
log_record.setdefault("is_authenticated", record.args["{x-datatracker-is-authenticated}o"])