From 97c0fb389d40dd8baf2c246bf2a77217634c5446 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 21 Oct 2016 06:38:00 +0200 Subject: [PATCH] More logs [skip ci] --- app/Repositories/Bill/BillRepository.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Repositories/Bill/BillRepository.php b/app/Repositories/Bill/BillRepository.php index 99178d4fa7..3757160ece 100644 --- a/app/Repositories/Bill/BillRepository.php +++ b/app/Repositories/Bill/BillRepository.php @@ -298,7 +298,9 @@ class BillRepository implements BillRepositoryInterface * If $nextExpectedMatch is after $end, we continue: */ 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; } /* @@ -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'))); $currentStart = clone $nextExpectedMatch;