diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-05 17:38:49 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-05 17:38:49 -0700 |
commit | 04f02b49c5d524345bc916aad6e247c714177662 (patch) | |
tree | 2410e3ca63a67511c8dbdfd3a8f20a174492a9e5 /modules/gallery/helpers/task.php | |
parent | fcb031c2b60ac9e1888592296cba25791e77b446 (diff) |
Add task logging functionality. When a task runs, it creates a log that is
stored in the persistant cache for 30 days. On the admin_maintenance page
there is a new link for completed tasks "browse log". Clicking this will
open a dialog box that has the the contents of the log displayed.
The user can then view the log and close the dialog, or press the save button
to download the log to their local machine.
Diffstat (limited to 'modules/gallery/helpers/task.php')
-rw-r--r-- | modules/gallery/helpers/task.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/helpers/task.php b/modules/gallery/helpers/task.php index a8a004ab..79a7c93b 100644 --- a/modules/gallery/helpers/task.php +++ b/modules/gallery/helpers/task.php @@ -56,6 +56,8 @@ class task_Core { } $task->done = 1; $task->state = "cancelled"; + $task->log(t("Task %task_name cancelled (task id %task_id)", + array("task_name" => $task->name, "task_id" => $task->id))); $task->save(); return $task; |