summaryrefslogtreecommitdiffstats
path: root/django_authopenid/util.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-05 19:15:09 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-02-05 19:15:09 -0500
commitb6cce3357041aa7dfbb59ae12355f7c3ed69f687 (patch)
tree72759b1353e97ba00d9171e864d245c4bfcfb993 /django_authopenid/util.py
parent955f0853655cd499a12f69ca35768802ddbbac38 (diff)
downloadaskbot-b6cce3357041aa7dfbb59ae12355f7c3ed69f687.tar.gz
askbot-b6cce3357041aa7dfbb59ae12355f7c3ed69f687.tar.bz2
askbot-b6cce3357041aa7dfbb59ae12355f7c3ed69f687.zip
added logging messages to django_authopenid library for debugging, \
also fixed up format of logging output and added HOW_TO_DEBUG file
Diffstat (limited to 'django_authopenid/util.py')
-rw-r--r--django_authopenid/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django_authopenid/util.py b/django_authopenid/util.py
index 165756e0..969af0b9 100644
--- a/django_authopenid/util.py
+++ b/django_authopenid/util.py
@@ -14,7 +14,7 @@ try:
except:
from yadis import xri
-import time, base64, hashlib, operator
+import time, base64, hashlib, operator, logging
from utils.forms import clean_next, get_next_url
from models import Association, Nonce
@@ -23,6 +23,7 @@ __all__ = ['OpenID', 'DjangoOpenIDStore', 'from_openid_response', 'clean_next']
class OpenID:
def __init__(self, openid_, issued, attrs=None, sreg_=None):
+ logging.debug('init janrain openid object')
self.openid = openid_
self.issued = issued
self.attrs = attrs or {}