From c466f2f15464cbd5ef81c1f71d7ab9f5cb6c8eb4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 12 Apr 2022 10:23:09 +1000 Subject: [PATCH] restore query logging middleware --- app/Http/Middleware/QueryLogging.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index 97630957fbe5..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(); @@ -53,10 +53,10 @@ class QueryLogging // info("Query count = {$count}"); - // if($count > 175){ + if($count > 175){ nlog("Query count = {$count}"); nlog($queries); - // } + } $ip = '';