Debug log.

This commit is contained in:
James Cole 2015-08-01 07:09:12 +02:00
parent 16b95ea78a
commit 72ebfdc20e

View File

@ -6,6 +6,7 @@ use Carbon\Carbon;
use Config;
use FireflyIII\Models\Account;
use Illuminate\Support\Collection;
use Log;
use Preferences;
use Steam;
@ -67,6 +68,7 @@ class ChartJsAccountChartGenerator implements AccountChartGenerator
$start = isset($startBalances[$id]) ? $startBalances[$id] : 0;
$end = isset($endBalances[$id]) ? $endBalances[$id] : 0;
$diff = $end - $start;
Log::debug($account->name ' spent ' . $diff);
if ($diff > 0) {
$data['labels'][] = $account->name;
$data['datasets'][0]['data'][] = $diff;