Ver Fonte

add log after PaliSearch::search

visuddhinanda há 2 anos atrás
pai
commit
6e61002abd
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      app/Http/Controllers/SearchController.php

+ 7 - 0
app/Http/Controllers/SearchController.php

@@ -190,6 +190,13 @@ class SearchController extends Controller
         $offset = $request->get('offset',0);
         $matchMode = $request->get('match','case');
         $result = PaliSearch::search($key,$bookId,$matchMode,$offset,$limit);
+        Log::debug('search tulip total='.$result['total'],[
+            'key'=>$request->get('key'),
+            'bookId'=>$bookId,
+            'matchMode'=>$matchMode,
+            'offset'=>$offset,
+            'limit'=>$limit,
+        ]);
         return $this->ok(["rows"=>SearchResource::collection(collect($result['rows'])),"count"=>$result['total']]);
     }