diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index caa5d0949197..94ba71086a22 100644 --- a/app/Http/Middleware/QueryLogging.php +++ b/app/Http/Middleware/QueryLogging.php @@ -35,9 +35,9 @@ class QueryLogging { // Enable query logging for development - // if (!Ninja::isHosted() || !config('beacon.enabled')) { - // return $next($request); - // } + if (!Ninja::isHosted() || !config('beacon.enabled')) { + return $next($request); + } $timeStart = microtime(true); DB::enableQueryLog(); @@ -52,12 +52,11 @@ class QueryLogging $time = $timeEnd - $timeStart; // info("Query count = {$count}"); - $url = urldecode($request->url()); - $method = $request->method(); - // if($count > 175){ - nlog("Query count = {$count} - {$method} - {$url} "); - // nlog($queries); - // } + + if($count > 175){ + nlog("Query count = {$count}"); + nlog($queries); + } $ip = '';