a0c67b860b
This is a combination of 2 commits. The first commit's message is: Prevent MemoryError when logging response bodies Response bodies are loaded into memory prior to being logged. Loading huge response bodies may result in a MemoryError. This patch proposes that only JSON and TEXT responses be logged, i.e when the Content-Type header is application/json or application/text. Responses that do not include or have a different Content-Type header will have their body omitted. This is a sort of backport of the fix for keystoneauth sessions, see I93b6fff73368c4f58bdebf8566c4948b50980cee Co-Authored-By: Samuel de Medeiros Queiroz <samueldmq@gmail.com> Closes-bug: 1616105 Change-Id: I8f43eee3a0b35041c6cf672e476f8151cf2f8d14 (cherry-picked from: |
||
---|---|---|
.. | ||
.placeholder | ||
bug-1616105-cc8b85eb056e99e2.yaml | ||
bug-1654847-d2e9df994c7b617f.yaml | ||
deprecated_auth-d2a2bf537bdb88d3.yaml | ||
implied_roles-ea39d3c3d998d482.yaml | ||
ksc_2.1.0-739ded9c4c3f8aaa.yaml | ||
list_role_assignment_names-7e1b7eb8c2d22d7c.yaml | ||
remove-middleware-eef8c40117b465aa.yaml | ||
remove_apiclient_exceptions-6580003a885db286.yaml |