From 32877776e763e225ff3d1b43854de3abfe8608f9 Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Fri, 20 Apr 2018 04:09:36 +0000 Subject: Update log config for Restapi Change-Id: I3117489d489fe7e948c81f62ccfd04a13351780a Signed-off-by: Linda Wang --- functest/api/resources/v1/testcases.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functest/api/resources/v1/testcases.py b/functest/api/resources/v1/testcases.py index 2dbf97e4d..43340625b 100644 --- a/functest/api/resources/v1/testcases.py +++ b/functest/api/resources/v1/testcases.py @@ -146,12 +146,12 @@ class V1Testcase(ApiResource): """ Update the log file for each task""" rconfig = ConfigParser.RawConfigParser() rconfig.read( - pkg_resources.resource_filename('functest', 'ci/logging.ini')) + pkg_resources.resource_filename('xtesting', 'ci/logging.ini')) log_path = os.path.join(getattr(config.CONF, 'dir_results'), '{}.log'.format(task_id)) rconfig.set('handler_file', 'args', '("{}",)'.format(log_path)) with open( pkg_resources.resource_filename( - 'functest', 'ci/logging.ini'), 'wb') as configfile: + 'xtesting', 'ci/logging.ini'), 'wb') as configfile: rconfig.write(configfile) -- cgit 1.2.3-korg