From 702a991e4a24320b99cd86525394089de724e7cf Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Mon, 26 Sep 2016 15:51:45 +0800 Subject: vPing ssh outpust wrong logger set logger file according to case_name rather than use fixed 'vping_userdata' JIRA: FUNCTEST-490 Change-Id: I65169a59ec1978410fdbd6dadc82da024a4504c7 Signed-off-by: SerenaFeng --- testcases/OpenStack/vPing/vping.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'testcases/OpenStack') diff --git a/testcases/OpenStack/vPing/vping.py b/testcases/OpenStack/vPing/vping.py index 168ed4f8..08579e10 100755 --- a/testcases/OpenStack/vPing/vping.py +++ b/testcases/OpenStack/vPing/vping.py @@ -33,8 +33,8 @@ parser.add_argument("-m", "--mode", default='ssh', args = parser.parse_args() -""" logging configuration """ -logger = ft_logger.Logger("vping_userdata").getLogger() +""" logging declaration """ +logger = None def main(): @@ -43,6 +43,9 @@ def main(): else: case = 'vping_userdata' + global logger + logger = ft_logger.Logger(case).getLogger() + util.init(logger) util.check_repo_exist() -- cgit 1.2.3-korg