Debug info for #2437

This commit is contained in:
James Cole 2019-08-17 21:02:02 +02:00
parent 9974e0229d
commit 246100f2b7
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -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);