From 21b84c153a7da3fcf9962ca23ddb65ab0f864187 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Fri, 26 Apr 2013 17:54:52 -0400 Subject: [PATCH] better logging for return values --- python_apps/api_clients/api_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py index 89167acdc..a7d88fdb9 100644 --- a/python_apps/api_clients/api_client.py +++ b/python_apps/api_clients/api_client.py @@ -140,7 +140,9 @@ class ApiRequest(object): # 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) try: - return json.loads(response) + data = json.loads(response) + self.logger.debug(data) + return data except Exception: self.logger.error(response) raise