Add debug logging.

This commit is contained in:
James Cole 2018-04-08 16:17:29 +02:00
parent 7b715925cf
commit e597f04b0d
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -439,15 +439,17 @@ class AccountController extends Controller
/** @var CurrencyRepositoryInterface $repository */
$repository = app(CurrencyRepositoryInterface::class);
$chartData = [];
foreach ($accounts as $account) {
Log::debug(sprintf('Now at account #%d', $account->id));
$currency = $repository->findNull((int)$account->getMeta('currency_id'));
Log::debug(sprintf('Currency is null? %s', var_export($currency === null, true)));
$currentSet = [
'label' => $account->name,
'currency_symbol' => $currency->symbol,
'entries' => [],
];
$currentStart = clone $start;
$range = app('steam')->balanceInRange($account, $start, clone $end);
$previous = array_values($range)[0];