diff --git a/app/models/loan.py b/app/models/loan.py index b352810..125757b 100644 --- a/app/models/loan.py +++ b/app/models/loan.py @@ -342,7 +342,7 @@ class Loan(db.Model): # Ensure valid repayment amount if amount_collected <= Decimal("0.00"): - raise ValueError("Repayment amount must be greater than zero.") + logger.info(f"Repayment amount is less than or equal to 0: {amount_collected}. Must be greater than 0.00") if balance <= Decimal("0.00"): raise ValueError("There is no balance for this loan.") if amount_collected > balance: diff --git a/app/utils/auth.py b/app/utils/auth.py index 34ed4fd..2b7769e 100644 --- a/app/utils/auth.py +++ b/app/utils/auth.py @@ -16,7 +16,6 @@ def get_headers(): "password": "G7$k9@pL2!qR" } logger.info(f"Calling Bank Call-Auth Endpoint: {url}") - logger.info(f"Calling Bank Call-Auth Endpoint with data: {data}") headers = {"Content-Type": "application/json"} @@ -25,7 +24,6 @@ def get_headers(): response.raise_for_status() # Raises HTTPError for 4xx/5xx result = response.json() - logger.info(f"Bank Call Auth Response: {result}") # Check if access_token is present if 'access_token' not in result: