mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 07:14:37 -04:00
Fixes for query logging
This commit is contained in:
parent
e700ac3095
commit
51effc3dfe
@ -52,12 +52,13 @@ class QueryLogging
|
|||||||
$timeEnd = microtime(true);
|
$timeEnd = microtime(true);
|
||||||
$time = $timeEnd - $timeStart;
|
$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)
|
// if($count > 50)
|
||||||
//nlog($queries);
|
//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();
|
->batch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user