Permalink
Browse files

debug logging

  • Loading branch information...
1 parent 573ee79 commit 773f03eeb5ed180e29579df847cc7088e720b0a7 @brosner brosner committed Dec 29, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 contacts_import/oauth_consumer.py
@@ -1,4 +1,5 @@
import httplib2
+import logging
import socket
from django.conf import settings
@@ -9,6 +10,9 @@
import oauth2 as oauth
+logger = logging.getLogger("oauth_consumer")
+
+
class ServiceFail(Exception):
pass
@@ -142,4 +146,5 @@ def _oauth_response(self, request):
else:
ret = http.request(request.to_url(), "GET")
response, content = ret
+ logger.debug(repr(ret))
return content

0 comments on commit 773f03e

Please sign in to comment.