Files
python-keystoneclient/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml
Steve Martinelli 51d16fa344 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
2017-01-10 22:35:14 -05:00

9 lines
365 B
YAML

---
fixes:
- >
[`bug 1616105 <https://bugs.launchpad.net/keystoneauth/+bug/1616105>`_]
Only log the response body when the ``Content-Type`` header is set to
``application/json``. This avoids logging large binary objects (such as
images). Other ``Content-Type`` will not be logged. Additional
``Content-Type`` strings can be added as required.