diff options
-rw-r--r-- | askbot/__init__.py | 2 | ||||
-rw-r--r-- | askbot/utils/http.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/askbot/__init__.py b/askbot/__init__.py index 8ab5079e..a54b83c1 100644 --- a/askbot/__init__.py +++ b/askbot/__init__.py @@ -9,7 +9,7 @@ import smtplib import sys import logging -VERSION = (0, 6, 97) +VERSION = (0, 6, 98) #necessary for interoperability of django and coffin try: diff --git a/askbot/utils/http.py b/askbot/utils/http.py index 8a3ccd22..2c45b248 100644 --- a/askbot/utils/http.py +++ b/askbot/utils/http.py @@ -41,5 +41,8 @@ def get_request_info(request): data = hide_passwords(copy(data)) info += 'data: %s\n' % str(data) info += 'host: %s\n' % request.get_host() - info += 'user: %s\n' % request.user + if request.user.is_authenticated(): + info += 'user ID: %d\n' % request.user.id + else: + info += 'user is anonymous\n' return info |