]> git.mxchange.org Git - friendica.git/commitdiff
Improve logging in Module\Search\Index
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Oct 2019 20:18:19 +0000 (16:18 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Oct 2019 20:18:19 +0000 (16:18 -0400)
src/Module/Search/Index.php

index 8cd6448a27fee2b4c7b975c5c64036f65773a7e0..9c0d9e1dfff9cebd5373cc3c2770a21eae729962 100644 (file)
@@ -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;
        }
 }