mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 16:44:33 -04:00
restore query logging middleware
This commit is contained in:
parent
c2ec39dc4c
commit
c466f2f154
@ -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();
|
||||||
@ -53,10 +53,10 @@ class QueryLogging
|
|||||||
|
|
||||||
// info("Query count = {$count}");
|
// info("Query count = {$count}");
|
||||||
|
|
||||||
// if($count > 175){
|
if($count > 175){
|
||||||
nlog("Query count = {$count}");
|
nlog("Query count = {$count}");
|
||||||
nlog($queries);
|
nlog($queries);
|
||||||
// }
|
}
|
||||||
|
|
||||||
$ip = '';
|
$ip = '';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user