From 51d16fa344829aadf454faf5e0c4535a8f96a7c8 Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Tue, 10 Jan 2017 21:58:36 -0500 Subject: 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 --- releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'releasenotes') diff --git a/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml b/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml index 91529c6..e9c1c9c 100644 --- a/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml +++ b/releasenotes/notes/bug-1616105-cc8b85eb056e99e2.yaml @@ -3,6 +3,6 @@ fixes: - > [`bug 1616105 `_] Only log the response body when the ``Content-Type`` header is set to - ``application/json`` or ``application/text``. This avoids logging large - binary objects (such as images). Other ``Content-Type`` will not be - logged. + ``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. -- cgit v1.2.1