summaryrefslogtreecommitdiff
path: root/coip
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2010-12-10 22:27:38 +0100
committerLeif Johansson <leifj@sunet.se>2010-12-10 22:27:38 +0100
commitf24ce9d3b83bcc7ea9bf145b021dba433b64f598 (patch)
tree42657cc20397b51783de97c4e1a81aec3043d9d0 /coip
parent54ec0fee6883aa83a2ea6f6a78016f8ebdf4fde7 (diff)
logging request
Diffstat (limited to 'coip')
-rw-r--r--coip/apps/userprofile/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/coip/apps/userprofile/utils.py b/coip/apps/userprofile/utils.py
index ecbc21a..9636b4f 100644
--- a/coip/apps/userprofile/utils.py
+++ b/coip/apps/userprofile/utils.py
@@ -5,9 +5,12 @@ Created on Jul 6, 2010
'''
from coip.apps.userprofile.models import UserProfile, PKey
from django.core.exceptions import ObjectDoesNotExist
+import logging
+from pprint import pformat
def request_profile(request):
if request.user.is_authenticated():
+ logging.warning(pformat(request.META))
if request.META.has_key('REMOTE_USER'):
return UserProfile.objects.get(identifier=request.META['REMOTE_USER'])
else: