mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-30 10:47:06 -06:00
Debug info for #2437
This commit is contained in:
parent
9974e0229d
commit
246100f2b7
@ -146,8 +146,14 @@ class GroupCollector implements GroupCollectorInterface
|
||||
*/
|
||||
public function getGroups(): Collection
|
||||
{
|
||||
$start = microtime(true);
|
||||
/** @var Collection $result */
|
||||
$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.
|
||||
$collection = $this->parseArray($result);
|
||||
|
Loading…
Reference in New Issue
Block a user