From b080eddf8dbd2c4856b8e898992c7ff823639d28 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 8 Mar 2015 03:24:54 +0100 Subject: [PATCH] Improved logging for the search. --- mod/search.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/search.php b/mod/search.php index 50d8e60ce7..670df299e5 100644 --- a/mod/search.php +++ b/mod/search.php @@ -133,7 +133,7 @@ function search_content(&$a) { // No items will be shown if the member has a blocked profile wall. if($tag) { - logger("Start tag search for '".$search."'"); + logger("Start tag search for '".$search."'", LOGGER_DEBUG); $r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`, `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`alias`, `contact`.`rel`, @@ -148,7 +148,7 @@ function search_content(&$a) { intval(local_user()), intval(TERM_OBJ_POST), intval(TERM_HASHTAG), dbesc(protect_sprintf($search)), intval($a->pager['start']), intval($a->pager['itemspage'])); } else { - logger("Start fulltext search for '".$search."'"); + logger("Start fulltext search for '".$search."'", LOGGER_DEBUG); if (get_config('system','use_fulltext_engine')) { $sql_extra = sprintf(" AND MATCH (`item`.`body`, `item`.`title`) AGAINST ('%s' in boolean mode) ", dbesc(protect_sprintf($search))); @@ -181,12 +181,12 @@ function search_content(&$a) { else $o .= '

Search results for: ' . $search . '

'; - logger("Start Conversation"); + logger("Start Conversation for '".$search."'", LOGGER_DEBUG); $o .= conversation($a,$r,'search',false); $o .= alt_pager($a,count($r)); - logger("Done"); + logger("Done '".$search."'", LOGGER_DEBUG); return $o; }