kafka collect error

This commit is contained in:
CHIEFSOFT\ameye
2025-06-21 11:11:45 -04:00
parent caa77191c7
commit 8249a1b6d8
2 changed files with 13 additions and 3 deletions
+2 -1
View File
@@ -146,10 +146,11 @@ class KafkaIntegration:
logger.info(f"Calling collect_loan service with message: {message}")
try:
#Calling CollectLoan endpoint with data: {'transactionId': 'TRCVIC85641527829', 'customerId': 'ZX48440946', 'productId': 'AMPC', 'loanRef': 'TRCVIC85641527829USSDAMPC', 'debtId': '014231'}
response = SimbrellaClient.collect_loan_user_initiated(message)
logger.info(
f"Successfully sent message to collect_loan service: {response}"
)
except Exception as e:
logger.info(f"Failed to call collect_loan service: {e}")
logger.error(f"Failed to call collect_loan service: {e}")
# raise