diff options
Diffstat (limited to 'testcases/vPing/CI/libraries/vPing_userdata.py')
-rw-r--r-- | testcases/vPing/CI/libraries/vPing_userdata.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/testcases/vPing/CI/libraries/vPing_userdata.py b/testcases/vPing/CI/libraries/vPing_userdata.py index 862343c1b..3e69ddfe0 100644 --- a/testcases/vPing/CI/libraries/vPing_userdata.py +++ b/testcases/vPing/CI/libraries/vPing_userdata.py @@ -16,7 +16,6 @@ import argparse import datetime -import logging import os import pprint import time @@ -27,6 +26,7 @@ from neutronclient.v2_0 import client as neutronclient from keystoneclient.v2_0 import client as keystoneclient from glanceclient import client as glanceclient +import functest.utils.functest_logger as ft_logger import functest.utils.functest_utils as functest_utils import functest.utils.openstack_utils as openstack_utils @@ -43,22 +43,7 @@ parser.add_argument("-r", "--report", args = parser.parse_args() """ logging configuration """ - -logger = logging.getLogger('vPing_userdata') -logger.setLevel(logging.DEBUG) - -ch = logging.StreamHandler() - -if args.debug: - ch.setLevel(logging.DEBUG) -else: - ch.setLevel(logging.INFO) - -formatter = logging.Formatter('%(asctime)s - %(name)s' - '- %(levelname)s - %(message)s') - -ch.setFormatter(formatter) -logger.addHandler(ch) +logger = ft_logger.Logger("vping_userdata").getLogger() REPO_PATH = os.environ['repos_dir'] + '/functest/' if not os.path.exists(REPO_PATH): |