From: gregb_cc Date: Thu, 13 Mar 2003 20:59:31 +0000 (+0000) Subject: Added a useful message, to make the cron output more helpful in diagnosing X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b9287b2fba32b546dba1914f48e713dd0ea8da53;p=moodle.git Added a useful message, to make the cron output more helpful in diagnosing "stuck" assignments. --- diff --git a/mod/assignment/lib.php b/mod/assignment/lib.php index 1efcc909e7..682df5ee78 100644 --- a/mod/assignment/lib.php +++ b/mod/assignment/lib.php @@ -132,7 +132,8 @@ function assignment_cron () { } if (! isstudent($course->id, $user->id) and !isteacher($course->id, $user->id)) { - continue; // Not an active participant + echo "$user->firstname $user->lastname not an active participant in $course->shortname\n"; + continue; } if (! $teacher = get_record("user", "id", "$submission->teacher")) {