From: hernani Date: Mon, 10 May 2010 18:53:30 +0000 (+0000) Subject: Log action describe errors. X-Git-Tag: live~930 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/34b08ff716fe55e121f52765801ebc12bcc1cdb0 Log action describe errors. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@199 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/templatetags/user_tags.py b/forum/templatetags/user_tags.py index 960bd53..a5d63fe 100644 --- a/forum/templatetags/user_tags.py +++ b/forum/templatetags/user_tags.py @@ -1,6 +1,7 @@ from django import template from django.utils.translation import ugettext as _ from django.utils.safestring import mark_safe +import logging register = template.Library() @@ -41,9 +42,7 @@ class ActivityNode(template.Node): describe = mark_safe(action.describe(viewer)) return self.template.render(template.Context(dict(action=action, describe=describe))) except Exception, e: - #import sys, traceback - #traceback.print_exc(file=sys.stdout) - pass + logging.error("Error in %s action describe: %s" % (action.action_type, str(e))) @register.tag def activity_item(parser, token):