mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
Merge pull request #7381 from turbo124/v5-develop
fixes for query logging
This commit is contained in:
commit
36a5f6b8bc
@ -35,9 +35,9 @@ class QueryLogging
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Enable query logging for development
|
// Enable query logging for development
|
||||||
// if (!Ninja::isHosted() || !config('beacon.enabled')) {
|
if (!Ninja::isHosted() || !config('beacon.enabled')) {
|
||||||
// return $next($request);
|
return $next($request);
|
||||||
// }
|
}
|
||||||
|
|
||||||
$timeStart = microtime(true);
|
$timeStart = microtime(true);
|
||||||
DB::enableQueryLog();
|
DB::enableQueryLog();
|
||||||
@ -52,12 +52,11 @@ class QueryLogging
|
|||||||
$time = $timeEnd - $timeStart;
|
$time = $timeEnd - $timeStart;
|
||||||
|
|
||||||
// info("Query count = {$count}");
|
// info("Query count = {$count}");
|
||||||
$url = urldecode($request->url());
|
|
||||||
$method = $request->method();
|
if($count > 175){
|
||||||
// if($count > 175){
|
nlog("Query count = {$count}");
|
||||||
nlog("Query count = {$count} - {$method} - {$url} ");
|
nlog($queries);
|
||||||
// nlog($queries);
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
$ip = '';
|
$ip = '';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user