From e6f10a54eac152e6febfa9672b85a7cf9d5eeac0 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Sat, 8 Oct 2016 13:55:04 +0800 Subject: 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 --- docker/Dockerfile | 2 +- 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) -- cgit 1.2.3-korg