From e3e3ee72a07640d091c642ea254b891cf95d91fe Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 7 Oct 2019 16:18:19 -0400 Subject: [PATCH] Improve logging in Module\Search\Index --- src/Module/Search/Index.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Module/Search/Index.php b/src/Module/Search/Index.php index 8cd6448a27..9c0d9e1dff 100644 --- a/src/Module/Search/Index.php +++ b/src/Module/Search/Index.php @@ -131,7 +131,7 @@ class Index extends BaseSearchModule $pager = new Pager($args->getQueryString()); if ($tag) { - Logger::info('Start tag search for "' . $search . '"'); + Logger::info('Start tag search.', ['q' => $search]); $condition = [ "(`uid` = 0 OR (`uid` = ? AND NOT `global`)) @@ -159,7 +159,7 @@ class Index extends BaseSearchModule $r = []; } } else { - Logger::info('Start fulltext search for "' . $search . '"'); + Logger::info('Start fulltext search.', ['q' => $search]); $condition = [ "(`uid` = 0 OR (`uid` = ? AND NOT `global`)) @@ -189,13 +189,12 @@ class Index extends BaseSearchModule '$title' => $title ]); - Logger::info('Start Conversation for "' . $search . '"'); + Logger::info('Start Conversation.', ['q' => $search]); + $o .= conversation(self::getApp(), $r, $pager, 'search', false, false, 'commented', local_user()); $o .= $pager->renderMinimal(count($r)); - Logger::info('Done "'.$search.'"'); - return $o; } } -- 2.39.5