diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-19 13:43:06 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-19 13:43:06 -0700 |
commit | 788a458a11f04e47fe1c241463785d0f0b12cf3c (patch) | |
tree | a8ab5e40ce85ee783dbc57388916fb687e1dac40 /modules | |
parent | c46188111015a128ac4ffa1882a63924cd49b25e (diff) |
Remove success logging. Only log on errors, otherwise the log is huge.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/search/helpers/search.php | 1 | ||||
-rw-r--r-- | modules/search/helpers/search_task.php | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php index 34eaecbd..6317020f 100644 --- a/modules/search/helpers/search.php +++ b/modules/search/helpers/search.php @@ -79,7 +79,6 @@ class search_Core { $record->data = join(" ", $data); $record->dirty = 0; $record->save(); - return t("Search index updated for '%title'", array("title" => p::purify($item->title))); } static function stats() { diff --git a/modules/search/helpers/search_task.php b/modules/search/helpers/search_task.php index df1dfe16..5643573a 100644 --- a/modules/search/helpers/search_task.php +++ b/modules/search/helpers/search_task.php @@ -52,7 +52,7 @@ class search_task_Core { break; } - $message[] = search::update($item); + search::update($item); $completed++; } @@ -69,13 +69,10 @@ class search_task_Core { $task->status = t2("one record updated, index is %percent% up-to-date", "%count records updated, index is %percent% up-to-date", $completed, array("percent" => $percent)); - $message[] = $task->status; } catch (Exception $e) { $task->done = true; $task->state = "error"; $task->status = $e->getMessage(); - $message[] = $e->__toString(); } - $task->log($message); } } |