@staticmethod
    def log_http_response(resp):
        status = (resp.raw.version / 10.0, resp.status_code, resp.reason)
        dump = ['\nHTTP/%.1f %s %s' % status]
        dump.extend(['%s: %s' % (k, v) for k, v in resp.headers.items()])
        dump.append('')
        if resp.content:
            content = resp.content
            if isinstance(content, six.binary_type):
                try:
                    content = encodeutils.safe_decode(resp.content)
                except __HOLE__:
                    pass
                else:
                    dump.extend([content, ''])
        LOG.debug('\n'.join(dump))
dataset/ETHPy150Open openstack/python-sticksclient/sticksclient/common/http.py/HTTPClient.log_http_response