aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/lib/test_utils.py
diff options
context:
space:
mode:
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>2018-05-25 11:53:57 +0300
committerPanagiotis Karalis <pkaralis@intracom-telecom.com>2018-06-05 16:44:22 +0300
commit7d4bbcc9fe1819f11c7b757f8c074db488baee4b (patch)
treef21353c0318bdee7985df80e86a309025ec42708 /sfc/lib/test_utils.py
parent7f8a775dec72e03d6cae2400b7a49d7a097c8957 (diff)
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 <pkaralis@intracom-telecom.com>
Diffstat (limited to 'sfc/lib/test_utils.py')
-rw-r--r--sfc/lib/test_utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfc/lib/test_utils.py b/sfc/lib/test_utils.py
index 16e5762c..36b52755 100644
--- a/sfc/lib/test_utils.py
+++ b/sfc/lib/test_utils.py
@@ -12,10 +12,9 @@ import subprocess
import time
import shutil
import urllib
+import logging
-from opnfv.utils import opnfv_logger as logger
-
-logger = logger.Logger(__name__).getLogger()
+logger = logging.getLogger(__name__)
SSH_OPTIONS = '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
FUNCTEST_RESULTS_DIR = os.path.join("home", "opnfv",
"functest", "results", "odl-sfc")