change some logging levels
This commit is contained in:
@@ -48,7 +48,7 @@ class Repository:
|
||||
def bulk_insert_transactions(self, transactions: List[TransactionRecord]) -> tuple:
|
||||
"""
|
||||
Bulk insert transaction records into ach_api_log.
|
||||
Records with invalid account numbers are silently skipped.
|
||||
Records with non-ipks account numbers are silently skipped.
|
||||
|
||||
Args:
|
||||
transactions: List of TransactionRecord objects
|
||||
@@ -60,7 +60,7 @@ class Repository:
|
||||
logger.warning("No transactions to insert")
|
||||
return 0, 0
|
||||
|
||||
# Validate accounts and filter out invalid ones
|
||||
# Validate accounts and filter out non-ipks ones
|
||||
valid_transactions = []
|
||||
skipped_count = 0
|
||||
|
||||
@@ -71,7 +71,7 @@ class Repository:
|
||||
skipped_count += 1
|
||||
|
||||
if not valid_transactions:
|
||||
logger.info(f"All {skipped_count} transactions skipped (invalid accounts)")
|
||||
logger.debug(f"All {skipped_count} transactions skipped (non-ipks accounts)")
|
||||
return 0, skipped_count
|
||||
|
||||
conn = self.connector.get_connection()
|
||||
@@ -96,7 +96,7 @@ class Repository:
|
||||
conn.commit()
|
||||
|
||||
inserted_count = len(valid_transactions)
|
||||
logger.info(f"Inserted {inserted_count} transactions, skipped {skipped_count} (invalid accounts)")
|
||||
logger.debug(f"Inserted {inserted_count} transactions, skipped {skipped_count} (non-ipks accounts)")
|
||||
return inserted_count, skipped_count
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user