Improve logging in Module\Search\Index
This commit is contained in:
parent
c8316bfe57
commit
e3e3ee72a0
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue