aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/download_scotia.py7
-rw-r--r--python/insert_fx_id.py2
2 files changed, 7 insertions, 2 deletions
diff --git a/python/download_scotia.py b/python/download_scotia.py
index 9b5f2af8..c8072d31 100644
--- a/python/download_scotia.py
+++ b/python/download_scotia.py
@@ -5,9 +5,14 @@ from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
+import logging
+import sys
from serenitas.utils.env import DAILY_DIR
+logging.basicConfig(stream=sys.stdout, level=logging.INFO)
+logger = logging.getLogger(__name__)
+
def wait(driver):
WebDriverWait(driver, 10).until(
@@ -42,7 +47,7 @@ def download_report(account_username, password, report_dir):
if not os.path.exists(os.path.join(report_dir, fname)):
elements.click()
else:
- print(f"{fname} exists already in {report_dir}")
+ logging.info(f"{fname} exists already in {report_dir}")
driver.quit()
diff --git a/python/insert_fx_id.py b/python/insert_fx_id.py
index c9cbe26b..89135ec5 100644
--- a/python/insert_fx_id.py
+++ b/python/insert_fx_id.py
@@ -13,7 +13,7 @@ from collateral.gs import load_file as load_excel_gs
from report_ops.enums import FundEnum
logger = logging.getLogger(__name__)
-logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
+logging.basicConfig(stream=sys.stdout, level=logging.INFO)
FX_REPORT_COLUMNS = [
"cpty_id",