Change loglevel to debug again.

This commit is contained in:
James Cole
2023-12-29 12:00:15 +01:00
parent fb1a66d872
commit 5b8f67e992
13 changed files with 16 additions and 16 deletions

View File

@@ -178,7 +178,7 @@ class BudgetController extends Controller
*/
private function processExpenses(int $budgetId, array $array, Carbon $start, Carbon $end): array
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$converter = new ExchangeRateConverter();
$return = [];
@@ -260,7 +260,7 @@ class BudgetController extends Controller
*/
private function processLimit(Budget $budget, BudgetLimit $limit): array
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$end = clone $limit->end_date;
$end->endOfDay();
$spent = $this->opsRepository->listExpenses($limit->start_date, $end, null, new Collection([$budget]));

View File

@@ -77,7 +77,7 @@ class CategoryController extends Controller
*/
public function dashboard(DateRequest $request): JsonResponse
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
/** @var Carbon $start */
$start = $this->parameters->get('start');

View File

@@ -245,7 +245,7 @@ class BasicController extends Controller
*/
private function getLeftToSpendInfo(Carbon $start, Carbon $end): array
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
app('log')->debug('Now in getLeftToSpendInfo');
$return = [];
$today = today(config('app.timezone'));

View File

@@ -104,7 +104,7 @@ class Cron extends Command
private function exchangeRatesCronJob(bool $force, ?Carbon $date): void
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$exchangeRates = new ExchangeRatesCronjob();
$exchangeRates->setForce($force);
// set date in cron job:

View File

@@ -73,7 +73,7 @@ class NetWorth implements NetWorthInterface
return $cache->get();
}
app('log')->debug(sprintf('Now in byAccounts("%s", "%s")', $ids, $date->format('Y-m-d')));
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$default = app('amount')->getDefaultCurrency();
$converter = new ExchangeRateConverter();

View File

@@ -67,7 +67,7 @@ class BillRepository implements BillRepositoryInterface
public function sumPaidInRange(Carbon $start, Carbon $end): array
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$bills = $this->getActiveBills();
$default = app('amount')->getDefaultCurrency();
$return = [];
@@ -136,7 +136,7 @@ class BillRepository implements BillRepositoryInterface
public function sumUnpaidInRange(Carbon $start, Carbon $end): array
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$bills = $this->getActiveBills();
$return = [];
$default = app('amount')->getDefaultCurrency();

View File

@@ -39,7 +39,7 @@ class AvailableBudgetRepository implements AvailableBudgetRepositoryInterface
public function getAvailableBudgetWithCurrency(Carbon $start, Carbon $end): array
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$return = [];
$converter = new ExchangeRateConverter();
$default = app('amount')->getDefaultCurrency();

View File

@@ -118,7 +118,7 @@ class AccountBalanceGrouped
*/
public function groupByCurrencyAndPeriod(): void
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$converter = new ExchangeRateConverter();
// loop. group by currency and by period.

View File

@@ -45,7 +45,7 @@ class SummaryBalanceGrouped
public function groupTransactions(string $key, array $journals): void
{
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(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;

View File

@@ -239,7 +239,7 @@ class Steam
$balances[$formatted] = $startBalance;
Log::debug(sprintf('Start balance on %s is %s', $formatted, $startBalance));
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$converter = new ExchangeRateConverter();
// not sure why this is happening:
@@ -423,7 +423,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__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$start = clone $date;
$end = clone $date;
$converter = new ExchangeRateConverter();

View File

@@ -93,7 +93,7 @@ class BillTransformer extends AbstractTransformer
'object_group_order' => $order,
];
}
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$this->default = app('amount')->getDefaultCurrency();
$this->converter = new ExchangeRateConverter();

View File

@@ -132,7 +132,7 @@ class PiggyBankTransformer extends AbstractTransformer
$this->notes[$id] = $note;
}
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$this->default = app('amount')->getDefaultCurrencyByUserGroup(auth()->user()->userGroup);
$this->converter = new ExchangeRateConverter();
}

View File

@@ -103,7 +103,7 @@ class TransactionGroupTransformer extends AbstractTransformer
}
// create converter
Log::info(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
Log::debug(sprintf('Created new ExchangeRateConverter in %s', __METHOD__));
$this->converter = new ExchangeRateConverter();
}