aboutsummaryrefslogtreecommitdiffstats
path: root/python/collateral/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/collateral/__init__.py')
-rw-r--r--python/collateral/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/collateral/__init__.py b/python/collateral/__init__.py
index fb8f2eac..2c13d5c8 100644
--- a/python/collateral/__init__.py
+++ b/python/collateral/__init__.py
@@ -1,3 +1,4 @@
+import logging
import sys
sys.path.append("..")
@@ -6,4 +7,10 @@ try:
except KeyError:
sys.exit("Please set 'DAILY_DIR' and 'LOG_DIR' in the environment")
+from utils import SerenitasFileHandler
from dates import bus_day
+
+fh = SerenitasFileHandler("collateral_calc.log")
+logger = logging.getLogger(__name__)
+logger.addHandler(fh)
+logger.setLevel(logging.WARNING)