summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygerrit/rest/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygerrit/rest/__init__.py b/pygerrit/rest/__init__.py
index baf2dc1..b51f41a 100644
--- a/pygerrit/rest/__init__.py
+++ b/pygerrit/rest/__init__.py
@@ -41,8 +41,9 @@ def _decode_response(response):
requests.HTTPError if the response contains an HTTP error status code.
"""
- response.raise_for_status()
content = response.content
+ logging.debug(content[:512])
+ response.raise_for_status()
if content.startswith(GERRIT_MAGIC_JSON_PREFIX):
content = content[len(GERRIT_MAGIC_JSON_PREFIX):]
try: