Improve logging in Module\Search\Index

pull/7714/head
Hypolite Petovan 2019-10-07 16:18:19 -04:00
rodzic c8316bfe57
commit e3e3ee72a0
1 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -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;
}
}