diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2016-12-09 03:31:28 -0500 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2016-12-09 03:47:45 -0500 |
commit | a875b9d4ff6b5c8492f38ea87f8e11c02ebe66b9 (patch) | |
tree | c17a9e68fd7b1e062a5cc2d21f5153dd3e3ac582 /dovetail/utils/dovetail_logger.py | |
parent | a372d5dff98c600f0318ac8e60e7db37cd47aaa8 (diff) |
[dovetail tool]: move config info from .py to config .yml file
JIRA: DOVETAIL-145
Change-Id: Ia9b3c678f1a491e5daf2d280f05904ead3b0a296
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'dovetail/utils/dovetail_logger.py')
-rw-r--r-- | dovetail/utils/dovetail_logger.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dovetail/utils/dovetail_logger.py b/dovetail/utils/dovetail_logger.py index 8afa08a1..bb09a7b1 100644 --- a/dovetail/utils/dovetail_logger.py +++ b/dovetail/utils/dovetail_logger.py @@ -24,7 +24,7 @@ import logging import os -from conf.dovetail_config import DovetailConfig as dt_config +from conf.dovetail_config import DovetailConfig as dt_cfg class Logger: @@ -46,7 +46,7 @@ class Logger: ch.setLevel(logging.INFO) self.logger.addHandler(ch) - result_path = dt_config.dovetail_config['result_dir'] + result_path = dt_cfg.dovetail_config['result_dir'] if not os.path.exists(result_path): os.makedirs(result_path) hdlr = logging.FileHandler(os.path.join(result_path, 'dovetail.log')) |