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

@@ -239,7 +239,7 @@ class Steam
$balances[$formatted] = $startBalance;
app('log')->debug(sprintf('Start balance on %s is %s', $formatted, $startBalance));
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$converter = new ExchangeRateConverter();
// not sure why this is happening:
@@ -422,6 +422,7 @@ class Steam
// need to convert the others. All sets use the "amount" value as their base (that's easy)
// but we need to convert each transaction separately because the date difference may
// incur huge currency changes.
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$start = clone $date;
$end = clone $date;
$converter = new ExchangeRateConverter();