summaryrefslogtreecommitdiffstats
path: root/utils/logger.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/logger.py')
-rw-r--r--utils/logger.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/logger.py b/utils/logger.py
index 80392f59..5ce64238 100644
--- a/utils/logger.py
+++ b/utils/logger.py
@@ -19,7 +19,8 @@
import logging
import os
-from utils.parser import Parser as conf
+from utils.parser import Parser as conf_parser
+conf_parser.config_init()
class Logger:
@@ -47,7 +48,7 @@ class Logger:
ch.setLevel(logging.INFO)
self.logger.addHandler(ch)
- result_path = conf.bottlenecks_config["log_dir"]
+ result_path = conf_parser.bottlenecks_config["log_dir"]
if not os.path.exists(result_path):
os.makedirs(result_path)
result_file = os.path.join(result_path, 'bottlenecks.log')