log more json response bodies

pull/27/head
Ryan Barrett 2017-10-24 07:30:33 -07:00
rodzic a1a66c2f24
commit cf1f4122ec
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -77,7 +77,7 @@ def _requests_fn(fn, url, parse_json=False, **kwargs):
logging.info('Got %s headers:%s', resp.status_code, resp.headers)
type = content_type(resp)
if (type and type != 'text/html' and
(type.startswith('text/') or type.endswith('+json'))):
(type.startswith('text/') or type.endswith('+json') or type.endswith('/json'))):
logging.info(resp.text)
if resp.status_code // 100 in (4, 5):