Reviewed: https://review.openstack.org/416249 Committed: https://git.openstack.org/cgit/openstack/keystoneauth/commit/?id=f345559a06c0128dcb7fede4b593487540da86ef Submitter: Jenkins Branch: master
commit f345559a06c0128dcb7fede4b593487540da86ef Author: Samuel de Medeiros Queiroz <email address hidden> Date: Tue Jan 3 11:04:59 2017 -0300
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.
Closes-bug: 1616105
Change-Id: I93b6fff73368c4f58bdebf8566c4948b50980cee
Reviewed: https:/ /review. openstack. org/416249 /git.openstack. org/cgit/ openstack/ keystoneauth/ commit/ ?id=f345559a06c 0128dcb7fede4b5 93487540da86ef
Committed: https:/
Submitter: Jenkins
Branch: master
commit f345559a06c0128 dcb7fede4b59348 7540da86ef
Author: Samuel de Medeiros Queiroz <email address hidden>
Date: Tue Jan 3 11:04:59 2017 -0300
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.
Closes-bug: 1616105
Change-Id: I93b6fff73368c4 f58bdebf8566c49 48b50980cee