From 105e6282be419c730a290945c87826c0fda80f76 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 13 Oct 2021 16:47:53 +1100 Subject: [PATCH] logging --- app/Http/Middleware/QueryLogging.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index 0f126f7a45aa..4b08ad38ca44 100644 --- a/app/Http/Middleware/QueryLogging.php +++ b/app/Http/Middleware/QueryLogging.php @@ -36,9 +36,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,7 +52,7 @@ class QueryLogging $timeEnd = microtime(true); $time = $timeEnd - $timeStart; - info("Query count = {$count}"); + // info("Query count = {$count}"); if($count > 175){ nlog("Query count = {$count}");