Clean up some logs.

This commit is contained in:
James Cole 2024-12-31 08:18:40 +01:00
parent e36f8deb08
commit 2e46d9ba33
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -114,7 +114,7 @@ class AccountController extends Controller
// loop the accounts, then check for balance and currency info. // loop the accounts, then check for balance and currency info.
foreach ($accounts as $account) { foreach ($accounts as $account) {
Log::debug(sprintf('[a] Now in account #%d ("%s")', $account->id, $account->name)); // Log::debug(sprintf('[a] Now in account #%d ("%s")', $account->id, $account->name));
$expenses = $endBalances[$account->id] ?? false; $expenses = $endBalances[$account->id] ?? false;
if (false === $expenses) { if (false === $expenses) {
Log::error(sprintf('Found no end balance for account #%d', $account->id)); Log::error(sprintf('Found no end balance for account #%d', $account->id));
@ -573,7 +573,7 @@ class AccountController extends Controller
// loop the accounts, then check for balance and currency info. // loop the accounts, then check for balance and currency info.
foreach ($accounts as $account) { foreach ($accounts as $account) {
Log::debug(sprintf('[b] Now in account #%d ("%s")', $account->id, $account->name)); // Log::debug(sprintf('[b] Now in account #%d ("%s")', $account->id, $account->name));
$expenses = $endBalances[$account->id] ?? false; $expenses = $endBalances[$account->id] ?? false;
if (false === $expenses) { if (false === $expenses) {
Log::error(sprintf('Found no end balance for account #%d', $account->id)); Log::error(sprintf('Found no end balance for account #%d', $account->id));