Skip to content

Commit

Permalink
Only log in exceptional case
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-chappell committed Oct 4, 2019
1 parent 7092a0a commit 799216d
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1,5 +1,6 @@
package com.gu.holiday_stops.subscription

import java.time.LocalDate.now
import java.time.{LocalDate, Period}

import acyclic.skipped
Expand Down Expand Up @@ -71,7 +72,8 @@ abstract class StoppedProduct(
*/
private def nextBillingPeriodStartDate: LocalDate = {

logger.info(s"Calculating nextBillingPeriodStartDate for $this")
if (stoppedPublicationDate.isAfter(now.plusYears(5)))
logger.info(s"Calculating nextBillingPeriodStartDate for curious case $this")

if (billingPeriod == "Specific_Weeks") invoicedPeriod.endDateExcluding
else {
Expand Down

0 comments on commit 799216d

Please sign in to comment.