python-keystoneclient/releasenotes/notes
Tobias Diaz a0c67b860b Only log application/json content type
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: 3e56e0d7e5)

Only log application/json in session to start

When whitelisting content types to debug print from session we chose
application/json and application/text. application/text is not a real
mime type, text is typically text/plain.

Rather than guess at mime types only print application/json to start
with, but make it easy for additional types to be added later.

Adapted from keystoneauth: Ica5fee076cdab8b1d5167161d28af7313fad9477
Related-Bug: 1616105

Change-Id: Ieaa8fb3ea8d25e09b89498f23b70b18c0f6153f1
(cherry-picked from: 51d16fa344)
2017-01-11 05:10:06 +00:00
..
.placeholder Add release notes for keystoneclient 2015-11-29 20:02:58 -05:00
bug-1616105-cc8b85eb056e99e2.yaml Only log application/json content type 2017-01-11 05:10:06 +00:00
bug-1654847-d2e9df994c7b617f.yaml X-Serivce-Token should be hashed in the log 2017-01-09 19:53:53 +00:00
deprecated_auth-d2a2bf537bdb88d3.yaml add release notes for deprecated auth bits 2016-02-11 23:04:05 -05:00
implied_roles-ea39d3c3d998d482.yaml Implied Roles 2016-02-17 22:23:43 -05:00
ksc_2.1.0-739ded9c4c3f8aaa.yaml add release notes for ksc 2.1.0 2016-01-12 13:54:58 -05:00
list_role_assignment_names-7e1b7eb8c2d22d7c.yaml Adds an option to include names in role assignment lists 2016-01-23 15:06:19 +00:00
remove-middleware-eef8c40117b465aa.yaml Cleanup release note 2015-12-29 19:56:23 +00:00
remove_apiclient_exceptions-6580003a885db286.yaml remove keystoneclient.apiclient.exceptions 2015-12-29 12:21:52 -06:00