From 4634662136dc00c0c5011776114bfcbc9959582a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 1 Aug 2022 07:46:45 +1000 Subject: [PATCH] Fixes for query logging --- app/Http/Middleware/QueryLogging.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index 0bf364225054..1ee27c815676 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();