better logging for return values

This commit is contained in:
Martin Konecny 2013-04-26 17:54:52 -04:00
parent 3a931f27bf
commit 21b84c153a

View file

@ -140,7 +140,9 @@ class ApiRequest(object):
# Ghetto hack for now because we don't the content type we are getting # Ghetto hack for now because we don't the content type we are getting
# (Pointless to look at mime since it's not being set correctly always) # (Pointless to look at mime since it's not being set correctly always)
try: try:
return json.loads(response) data = json.loads(response)
self.logger.debug(data)
return data
except Exception: except Exception:
self.logger.error(response) self.logger.error(response)
raise raise