* log_response: 0 is reworked, it now always logs the response but
in case if it's off the body is not logged.
* adjust error logging, the error in the body is correctly
logged in the response even if log_response: 0
Change-Id: I6dfddeccffb5464b830133235bf63c5e82ae6073
(cherry picked from commit e8f41aba50)
(cherry picked from commit 947fe43371)