diff options
author | Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com> | 2018-04-16 15:09:16 +0200 |
---|---|---|
committer | Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com> | 2018-04-19 13:45:27 +0200 |
commit | 303268d0464127c52f11443404fb1baae03d615f (patch) | |
tree | b73d71f5bf6862b332b92af65a19bcd6fd6a9943 /sdnvpn/test/functest/testcase_8.py | |
parent | fdabb0a5e92200c09e1476be01bf4353b0823e63 (diff) |
Make sdnvpn logging proper
* Currently no log messages are getting written into log file due to
file handler is registered for logger object created at different
modules. Now corresponding handler is registered for logger objects.
* Making sdnvpn Feature class to use its parent class logger object to
avoid unnecessary logger object creation.
Change-Id: I4ec61951ba4ac39cecc137dbb818da72f0b43b35
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Diffstat (limited to 'sdnvpn/test/functest/testcase_8.py')
-rw-r--r-- | sdnvpn/test/functest/testcase_8.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sdnvpn/test/functest/testcase_8.py b/sdnvpn/test/functest/testcase_8.py index 33bd69e..10c0653 100644 --- a/sdnvpn/test/functest/testcase_8.py +++ b/sdnvpn/test/functest/testcase_8.py @@ -16,16 +16,16 @@ # - Try to ping from one VM to the other # - Assign a floating IP to the VM in the router assoc network # - Ping it the floating ip -import logging import sys from sdnvpn.lib import config as sdnvpn_config from sdnvpn.lib import openstack_utils as os_utils from sdnvpn.lib import utils as test_utils from sdnvpn.lib.results import Results +from sdnvpn.lib import logutil -logger = logging.getLogger(__name__) +logger = logutil.getLogger(__name__) COMMON_CONFIG = sdnvpn_config.CommonConfig() TESTCASE_CONFIG = sdnvpn_config.TestcaseConfig( @@ -177,5 +177,4 @@ def main(): if __name__ == '__main__': - logging.basicConfig(level=logging.INFO) sys.exit(main()) |