More logs [skip ci]

This commit is contained in:
James Cole 2016-10-21 06:38:00 +02:00
parent a9c3992331
commit 97c0fb389d

View File

@ -298,7 +298,9 @@ class BillRepository implements BillRepositoryInterface
* If $nextExpectedMatch is after $end, we continue: * If $nextExpectedMatch is after $end, we continue:
*/ */
if ($nextExpectedMatch > $end) { if ($nextExpectedMatch > $end) {
Log::debug(sprintf('nextExpectedMatch %s is after %s, so we skip this bill now.', $nextExpectedMatch, $end)); Log::debug(
sprintf('nextExpectedMatch %s is after %s, so we skip this bill now.', $nextExpectedMatch->format('Y-m-d'), $end->format('Y-m-d'))
);
break; break;
} }
/* /*
@ -319,6 +321,9 @@ class BillRepository implements BillRepositoryInterface
) )
); );
} }
if ($count != 0) {
Log::info(sprintf('getBillsUnpaidInRange: Bill "%s" is paid (%d) so ignore it.', $bill->name, $count));
}
Log::debug(sprintf('Currentstart (%s) has become %s.', $currentStart->format('Y-m-d'), $nextExpectedMatch->format('Y-m-d'))); Log::debug(sprintf('Currentstart (%s) has become %s.', $currentStart->format('Y-m-d'), $nextExpectedMatch->format('Y-m-d')));
$currentStart = clone $nextExpectedMatch; $currentStart = clone $nextExpectedMatch;