Always log the task completion status message

This commit is contained in:
Tim Almdal
2009-07-06 10:29:55 -07:00
parent f381927ec6
commit 6dbd36d1cc
+3
View File
@@ -79,6 +79,9 @@ class task_Core {
try {
$task->state = "running";
call_user_func_array($task->callback, array(&$task));
if ($task->done) {
$task->log($task->status);
}
$task->save();
} catch (Exception $e) {
$task->log($e->__toString());