Add some debug info.

This commit is contained in:
James Cole
2023-12-29 08:21:14 +01:00
parent 6381d04e2b
commit c08d44ea48
14 changed files with 32 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ namespace FireflyIII\Support\Http\Api;
use FireflyIII\Models\TransactionCurrency;
use FireflyIII\Repositories\UserGroups\Currency\CurrencyRepositoryInterface;
use Illuminate\Support\Facades\Log;
class SummaryBalanceGrouped
{
@@ -44,7 +45,8 @@ class SummaryBalanceGrouped
public function groupTransactions(string $key, array $journals): void
{
\Log::debug(sprintf('Now in groupTransactions with key "%s" and %d journal(s)', $key, count($journals)));
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Now in groupTransactions with key "%s" and %d journal(s)', $key, count($journals)));
$converter = new ExchangeRateConverter();
$this->keys[] = $key;
$multiplier = 'income' === $key ? '-1' : '1';