mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
Merge pull request #5641 from turbo124/v5-develop
Fixes for query logging
This commit is contained in:
commit
2fb799ee0e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user