diff options
author | 2016-10-08 13:55:04 +0800 | |
---|---|---|
committer | 2016-10-11 10:53:10 +0800 | |
commit | e6f10a54eac152e6febfa9672b85a7cf9d5eeac0 (patch) | |
tree | c81c61024e8e6e6f2276865095fa170c1b95f0d4 | |
parent | 62023f676d9801d53dfc1525bebb45f4e88f6fc4 (diff) |
change log place
because /var/log cannot be accessed by unittest. so change
the log place from /var/log to ~/opnfv/qtip/logs
JIRA: QTIP-119
Change-Id: I14ba8317c94630fb8db46f532f7995c0c10595bd
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
-rw-r--r-- | docker/Dockerfile | 2 | ||||
-rw-r--r-- | utils/logger_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 7c4b18fb..2b93c260 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -44,7 +44,7 @@ RUN apt-get install ansible --force-yes -y RUN mkdir -p ${REPOS_DIR} RUN mkdir -p /root/.ssh -RUN mkdir -p /var/log/qtip +RUN mkdir -p /home/opnfv/qtip/logs RUN chmod 700 /root/.ssh #Config ansible diff --git a/utils/logger_utils.py b/utils/logger_utils.py index 780696f4..5efc1ef5 100644 --- a/utils/logger_utils.py +++ b/utils/logger_utils.py @@ -59,7 +59,7 @@ class Logger(object): class QtipLogger(Logger): - file_path = '/var/log/qtip' + file_path = '~/qtip/logs' def __init__(self, logger_name): super(QtipLogger, self).__init__(logger_name) |