Remove logs.

This commit is contained in:
James Cole 2021-02-22 18:50:12 +01:00
parent 5b5c988aa3
commit 97d12cd77a
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 7 additions and 7 deletions

View File

@ -439,7 +439,7 @@ class BillRepository implements BillRepositoryInterface
*/ */
public function getPaidDatesInRange(Bill $bill, Carbon $start, Carbon $end): Collection public function getPaidDatesInRange(Bill $bill, Carbon $start, Carbon $end): Collection
{ {
Log::debug('Now in getPaidDatesInRange()'); //Log::debug('Now in getPaidDatesInRange()');
return $bill->transactionJournals() return $bill->transactionJournals()
->before($end)->after($start)->get( ->before($end)->after($start)->get(
@ -634,8 +634,8 @@ class BillRepository implements BillRepositoryInterface
$end = app('navigation')->addPeriod($start, $bill->repeat_freq, $bill->skip); $end = app('navigation')->addPeriod($start, $bill->repeat_freq, $bill->skip);
Log::debug('nextDateMatch: Final start is ' . $start->format('Y-m-d')); //Log::debug('nextDateMatch: Final start is ' . $start->format('Y-m-d'));
Log::debug('nextDateMatch: Matching end is ' . $end->format('Y-m-d')); //Log::debug('nextDateMatch: Matching end is ' . $end->format('Y-m-d'));
$cache->store($start); $cache->store($start);

View File

@ -144,13 +144,13 @@ class BillTransformer extends AbstractTransformer
*/ */
protected function nextDateMatch(Bill $bill, Carbon $date): Carbon protected function nextDateMatch(Bill $bill, Carbon $date): Carbon
{ {
Log::debug(sprintf('Now in nextDateMatch(%d, %s)', $bill->id, $date->format('Y-m-d'))); //Log::debug(sprintf('Now in nextDateMatch(%d, %s)', $bill->id, $date->format('Y-m-d')));
$start = clone $bill->date; $start = clone $bill->date;
Log::debug(sprintf('Bill start date is %s', $start->format('Y-m-d'))); //Log::debug(sprintf('Bill start date is %s', $start->format('Y-m-d')));
while ($start < $date) { while ($start < $date) {
$start = app('navigation')->addPeriod($start, $bill->repeat_freq, $bill->skip); $start = app('navigation')->addPeriod($start, $bill->repeat_freq, $bill->skip);
} }
Log::debug(sprintf('End of loop, bill start date is now %s', $start->format('Y-m-d'))); //Log::debug(sprintf('End of loop, bill start date is now %s', $start->format('Y-m-d')));
return $start; return $start;
} }
@ -224,7 +224,7 @@ class BillTransformer extends AbstractTransformer
'paid_dates' => $result, 'paid_dates' => $result,
'next_expected_match' => $nextMatch->format('Y-m-d'), 'next_expected_match' => $nextMatch->format('Y-m-d'),
]; ];
Log::debug('Result', $result); //Log::debug('Result', $result);
return $result; return $result;
} }