From 51effc3dfeb01883264d933a3f0c83277dbde235 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 8 May 2021 07:43:53 +1000 Subject: [PATCH] Fixes for query logging --- app/Http/Middleware/QueryLogging.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Middleware/QueryLogging.php b/app/Http/Middleware/QueryLogging.php index c16da1252130..488bfc7dae62 100644 --- a/app/Http/Middleware/QueryLogging.php +++ b/app/Http/Middleware/QueryLogging.php @@ -52,12 +52,13 @@ class QueryLogging $timeEnd = microtime(true); $time = $timeEnd - $timeStart; - nlog($request->method().' - '.urldecode($request->fullUrl()).": $count queries - ".$time); + nlog($request->method().' - '.urldecode($request->url()).": $count queries - ".$time); + // nlog($request->method().' - '.urldecode($request->fullUrl()).": $count queries - ".$time); // if($count > 50) //nlog($queries); - LightLogs::create(new DbQuery($request->method(), urldecode($request->fullUrl()), $count, $time, request()->ip())) + LightLogs::create(new DbQuery($request->method(), urldecode($request->url()), $count, $time, request()->ip())) ->batch(); }