add logger to not found transaction #13

Merged
ameye merged 1 commits from oluyemi into master 2025-04-15 20:44:47 +00:00
+2
View File
@@ -20,7 +20,9 @@ class SimbrellaClient:
transaction = TransactionService.get_transaction_by_transaction_id(transaction_id=data['transactionId'])
logger.info(f"Response from database: {transaction}")
# If transaction is not found
if not transaction:
logger.info(f"Transaction id: {data['transactionId']}, was not found")
return 0
disbursement_data ={