aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/insert_fx_id.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/insert_fx_id.py b/python/insert_fx_id.py
index fd8160e3..827cb319 100644
--- a/python/insert_fx_id.py
+++ b/python/insert_fx_id.py
@@ -1,6 +1,7 @@
import argparse
import datetime
import logging
+import sys
import pandas as pd
from serenitas.utils.env import DAILY_DIR
from serenitas.analytics.dates import prev_business_day
@@ -12,7 +13,7 @@ from collateral.gs import load_file as load_excel_gs
from report_ops.enums import FundEnum
logger = logging.getLogger(__name__)
-logger.setLevel(logging.INFO)
+logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
FX_REPORT_COLUMNS = [
"cpty_id",
@@ -175,8 +176,9 @@ def process_rows(fund, counterparty, workdate, dawn_trades, conn):
matched_candidate.id,
),
)
- print(f"MATCHED {matched_candidate.id}: {table} to {row.cpty_id}")
- logger.info("UPDATED %", matched_candidate.id)
+ logger.info(
+ f"MATCHED {matched_candidate.id}: {table} to {row.cpty_id}"
+ )
conn.commit()
else:
raise ValueError(f"This is an unknown trade from us. {row.cpty_id}")