aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/features/promise.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-04-27 16:28:55 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2016-04-27 15:09:38 +0000
commita2c96362067e32d569b8a02ca0ec022195e54b35 (patch)
tree43a9ae5642b290259024cf36ac7fed48a41a7277 /testcases/features/promise.py
parent9c13968cdb32806da738dc520d45270e019f0ad3 (diff)
Replace all the loggers by the functest logger module
JIRA: FUNCTEST-228 Change-Id: If7a3c8cb08e9fbdf155fc5eff5330f79e5f8d234 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/features/promise.py')
-rw-r--r--testcases/features/promise.py18
1 files changed, 2 insertions, 16 deletions
diff --git a/testcases/features/promise.py b/testcases/features/promise.py
index 179ebca55..804cd6655 100644
--- a/testcases/features/promise.py
+++ b/testcases/features/promise.py
@@ -11,7 +11,6 @@
#
import argparse
import json
-import logging
import os
import requests
import subprocess
@@ -22,6 +21,7 @@ import glanceclient.client as glclient
import novaclient.client as nvclient
from neutronclient.v2_0 import client as ntclient
+import functest.utils.functest_logger as ft_logger
import functest.utils.functest_utils as functest_utils
import functest.utils.openstack_utils as openstack_utils
@@ -61,21 +61,7 @@ GLANCE_IMAGE_PATH = functest_yaml.get('general').get('directories').get(
'dir_functest_data') + "/" + GLANCE_IMAGE_FILENAME
""" logging configuration """
-logger = logging.getLogger('Promise')
-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("promise").getLogger()
def main():