summaryrefslogtreecommitdiff
path: root/meetingtools
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2014-04-14 15:12:53 +0200
committerJohan Lundberg <lundberg@nordu.net>2014-04-14 15:12:53 +0200
commit44456d1fb54aad27cee0aa0ceb84dedf2529c42f (patch)
tree711bcffa6c6a899ecfdf5dbbf421041424c9fdb5 /meetingtools
parent36216fd862fac32466fa641a7f531c2073fd8852 (diff)
More error logging.
Diffstat (limited to 'meetingtools')
-rw-r--r--meetingtools/apps/content/tasks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meetingtools/apps/content/tasks.py b/meetingtools/apps/content/tasks.py
index ad426ef..dff33d4 100644
--- a/meetingtools/apps/content/tasks.py
+++ b/meetingtools/apps/content/tasks.py
@@ -14,6 +14,7 @@ from celery.schedules import crontab
from tagging.models import Tag, TaggedItem
from datetime import datetime, timedelta
import logging
+import traceback
@periodic_task(run_every=crontab(hour="*", minute="*/10", day_of_week="*"))
@@ -116,9 +117,12 @@ def timed_full_import():
logging.error('ACPException in content.timed_full_import')
logging.error('Period %s %s-%s failed for cluster %s.' % (year, month[0], month[1], acc))
logging.error(e)
+ logging.error(traceback.format_exc())
pass
except Exception as e:
logging.error('Exception in content.timed_full_import')
+ logging.error('Period %s %s-%s failed for cluster %s.' % (year, month[0], month[1], acc))
logging.error(e)
+ logging.error(traceback.format_exc())
pass
logging.info("%s: Imported %d content objects." % (acc, nr)) \ No newline at end of file