mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 01:34:09 -04:00
Always log the task completion status message
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user