From 34b08ff716fe55e121f52765801ebc12bcc1cdb0 Mon Sep 17 00:00:00 2001 From: hernani Date: Mon, 10 May 2010 18:53:30 +0000 Subject: [PATCH] Log action describe errors. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@199 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/templatetags/user_tags.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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): -- 2.39.5