From e597f04b0d039eeac9743f80d1fc143a73701f54 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 8 Apr 2018 16:17:29 +0200 Subject: [PATCH] Add debug logging. --- app/Http/Controllers/Chart/AccountController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Chart/AccountController.php b/app/Http/Controllers/Chart/AccountController.php index 8e417dfe58..67c81408c4 100644 --- a/app/Http/Controllers/Chart/AccountController.php +++ b/app/Http/Controllers/Chart/AccountController.php @@ -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];