diff options
author | Juan Vidal <juan.vidal.allende@ericsson.com> | 2017-02-20 07:52:57 +0000 |
---|---|---|
committer | Juan Vidal <juan.vidal.allende@ericsson.com> | 2017-02-20 08:06:46 +0000 |
commit | 60bc3dddb055cc1ec53196a474743790e6395dce (patch) | |
tree | 79563e4829f61de7cadc5908568b33026052546a /sfc/lib | |
parent | 72b6571f2b448e27a1d8c50dd8f27e564004d687 (diff) |
Use __name__ on Logger instantiation instead of custom strings
Change-Id: Ic68256410b29cf3ba39a10a92d243979ea475220
Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
Diffstat (limited to 'sfc/lib')
-rw-r--r-- | sfc/lib/config.py | 2 | ||||
-rw-r--r-- | sfc/lib/results.py | 2 | ||||
-rw-r--r-- | sfc/lib/utils.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sfc/lib/config.py b/sfc/lib/config.py index f5a07013..3ef8514e 100644 --- a/sfc/lib/config.py +++ b/sfc/lib/config.py @@ -16,7 +16,7 @@ import functest.utils.functest_logger as ft_logger import functest.utils.functest_utils as ft_utils -logger = ft_logger.Logger("sfc_test_config").getLogger() +logger = ft_logger.Logger(__name__).getLogger() class CommonConfig(object): diff --git a/sfc/lib/results.py b/sfc/lib/results.py index 5fa9aa05..c5172cb2 100644 --- a/sfc/lib/results.py +++ b/sfc/lib/results.py @@ -10,7 +10,7 @@ import functest.utils.functest_logger as ft_logger -logger = ft_logger.Logger("sfc-results").getLogger() +logger = ft_logger.Logger(__name__).getLogger() class Results(object): diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py index 2b01113c..a7edef68 100644 --- a/sfc/lib/utils.py +++ b/sfc/lib/utils.py @@ -20,7 +20,7 @@ import functest.utils.openstack_utils as os_utils import functest.utils.openstack_tacker as os_tacker -logger = ft_logger.Logger("sfc_test_utils").getLogger() +logger = ft_logger.Logger(__name__).getLogger() SSH_OPTIONS = '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' FUNCTEST_RESULTS_DIR = os.path.join("home", "opnfv", "functest", "results", "odl-sfc") |