This commit is contained in:
David Bomba 2021-10-13 16:47:53 +11:00
parent 2106c9fe8e
commit 105e6282be

View File

@ -36,9 +36,9 @@ class QueryLogging
{ {
// Enable query logging for development // Enable query logging for development
// if (!Ninja::isHosted() || !config('beacon.enabled')) { if (!Ninja::isHosted() || !config('beacon.enabled')) {
// return $next($request); return $next($request);
// } }
$timeStart = microtime(true); $timeStart = microtime(true);
DB::enableQueryLog(); DB::enableQueryLog();
@ -52,7 +52,7 @@ class QueryLogging
$timeEnd = microtime(true); $timeEnd = microtime(true);
$time = $timeEnd - $timeStart; $time = $timeEnd - $timeStart;
info("Query count = {$count}"); // info("Query count = {$count}");
if($count > 175){ if($count > 175){
nlog("Query count = {$count}"); nlog("Query count = {$count}");