mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Debug info for #2437
This commit is contained in:
@@ -146,8 +146,14 @@ class GroupCollector implements GroupCollectorInterface
|
|||||||
*/
|
*/
|
||||||
public function getGroups(): Collection
|
public function getGroups(): Collection
|
||||||
{
|
{
|
||||||
|
$start = microtime(true);
|
||||||
/** @var Collection $result */
|
/** @var Collection $result */
|
||||||
$result = $this->query->get($this->fields);
|
$result = $this->query->get($this->fields);
|
||||||
|
$end = round(microtime(true) - $start, 5);
|
||||||
|
|
||||||
|
// log info about query time.
|
||||||
|
Log::info(sprintf('Query took Firefly III %s seconds', $end));
|
||||||
|
Log::info($this->query->toSql(), $this->query->getBindings());
|
||||||
|
|
||||||
// now to parse this into an array.
|
// now to parse this into an array.
|
||||||
$collection = $this->parseArray($result);
|
$collection = $this->parseArray($result);
|
||||||
|
Reference in New Issue
Block a user