From 7d4bbcc9fe1819f11c7b757f8c074db488baee4b Mon Sep 17 00:00:00 2001 From: Panagiotis Karalis Date: Fri, 25 May 2018 11:53:57 +0300 Subject: Fix the logging to be compatible with functest In order to collect logs from SFC test scenarios running through functest framework (mainly for troubleshooting purposes), the logging mechanism has been updated accordingly. JIRA: SFC-125 Change-Id: Ide7c32519afa6ece299d0ac1dcb168609a2e3945 Signed-off-by: Panagiotis Karalis --- sfc/lib/openstack_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sfc/lib/openstack_utils.py') diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py index f21552d5..cfce41b1 100644 --- a/sfc/lib/openstack_utils.py +++ b/sfc/lib/openstack_utils.py @@ -1,9 +1,10 @@ import os import time import json +import logging import yaml -from opnfv.utils import opnfv_logger as logger + from tackerclient.tacker import client as tackerclient from functest.utils import constants from functest.utils import env @@ -24,7 +25,7 @@ from snaps.config.vm_inst import VmInstanceConfig, FloatingIpConfig from snaps.openstack.utils import ( nova_utils, neutron_utils, heat_utils, keystone_utils) -logger = logger.Logger(__name__).getLogger() +logger = logging.getLogger(__name__) DEFAULT_TACKER_API_VERSION = '1.0' -- cgit 1.2.3-korg