From: W. Trevor King Date: Sun, 2 Sep 2012 14:18:33 +0000 (-0400) Subject: handler:get: log email construction to troubleshoot parsing. X-Git-Tag: v0.3~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b9d29ac135c29333d48cd7012c6664e4744256c;p=pygrader.git handler:get: log email construction to troubleshoot parsing. --- diff --git a/pygrader/handler/get.py b/pygrader/handler/get.py index a42fa25..1f44c4d 100644 --- a/pygrader/handler/get.py +++ b/pygrader/handler/get.py @@ -379,8 +379,12 @@ def _get_student_email(basedir, course, person, student=None): if student is None: student = person targets = None + _LOG.debug('construct student grade email about {} for {}'.format( + student, student)) else: targets = [person] + _LOG.debug('construct student grade email about {} for {}'.format( + student, person)) emails = list(_student_email( basedir=basedir, author=course.robot, course=course, student=student, targets=targets, old=True)) @@ -404,6 +408,8 @@ def _get_student_email(basedir, course, person, student=None): def _get_student_submission_email( basedir, course, person, assignments, student): + _LOG.debug('construct student submission email about {} {} for {}'.format( + student, assignments, person)) subject = '{} assignment submissions for {}'.format( course.name, student.name) text = '{}:\n * {}\n'.format( @@ -434,6 +440,7 @@ def _get_admin_email(basedir, course, person, subject): students = [p for p in course.find_people() if p.name.lower() in lsubject] if len(students) == 0: + _LOG.debug('construct course grades email for {}'.format(person)) stream = _io.StringIO() _tabulate( course=course, statistics=True, stream=stream, use_color=False)