From eb353af7a4ecbfca53d7aadd8c6f9af16f86de50 Mon Sep 17 00:00:00 2001 From: Piotr Zalewa Date: Thu, 10 May 2012 14:48:44 +0200 Subject: [PATCH] logging response --- apps/amo/helpers.py | 1 + utils/amo.py | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/amo/helpers.py b/apps/amo/helpers.py index 530d34c7..e5ac07d0 100644 --- a/apps/amo/helpers.py +++ b/apps/amo/helpers.py @@ -57,6 +57,7 @@ def get_addon_details(amo_id, amo_file_id=None): def fetch_amo_user(email): + log.debug('#'*80) amo = AMOOAuth(domain=settings.AMOOAUTH_DOMAIN, port=settings.AMOOAUTH_PORT, protocol=settings.AMOOAUTH_PROTOCOL, diff --git a/utils/amo.py b/utils/amo.py index 7640253c..dcb733a4 100644 --- a/utils/amo.py +++ b/utils/amo.py @@ -206,6 +206,7 @@ class AMOOAuth: def _send(self, url, method, data): resp, content = self._request(None, method, url, data=data) + log.debug('response received: %d, %s' % (resp.status, content)) if resp.status == 404: raise Http404 if resp.status != 200: