From 6e44503724abaa3c947e18bb752a60d62c81622f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 29 May 2023 08:08:44 +1000 Subject: [PATCH] Move query logging into terminate method --- app/Http/Middleware/QueryLogging.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index 5350186a3c2f..e6aa71a7b863 100644 --- a/app/Http/Middleware/QueryLogging.php +++ b/app/Http/Middleware/QueryLogging.php @@ -47,7 +47,7 @@ class QueryLogging public function terminate($request, $response) { - if (! Ninja::isHosted() || ! config('beacon.enabled')) { + if (! Ninja::isHosted() || ! config('beacon.enabled')) return; // hide requests made by debugbar