From 44456d1fb54aad27cee0aa0ceb84dedf2529c42f Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Mon, 14 Apr 2014 15:12:53 +0200 Subject: More error logging. --- meetingtools/apps/content/tasks.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meetingtools/apps/content/tasks.py') 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 -- cgit v1.1