summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Hinds <lukehinds@gmail.com>2016-06-08 11:49:36 +0100
committerLuke Hinds <lukehinds@gmail.com>2016-06-08 11:49:36 +0100
commitef2a4ad608cb08117cdbdb5322b58f457668b339 (patch)
tree5305335b3ebc9ce5be5a97a0550a670535bfd43b
parentd2828dcd84b1c1b8f1699da98ec7f17cf58228da (diff)
Added paramiko.util.log_to_file
JIRA: FUNCTEST-301 Change-Id: I489653d4e47232c5bf51bbae54d2a89c7ac780b6 Signed-off-by: Luke Hinds <lukehinds@gmail.com>
-rw-r--r--testcases/security_scan/connect.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/testcases/security_scan/connect.py b/testcases/security_scan/connect.py
index 9430e9a74..1c4e209ad 100644
--- a/testcases/security_scan/connect.py
+++ b/testcases/security_scan/connect.py
@@ -16,15 +16,14 @@ import paramiko
import functest.utils.functest_logger as ft_logger
-# Enable below for connection debugging
-# paramiko.util.log_to_file('ssh.log')
-
# add installer IP from env
INSTALLER_IP = os.getenv('INSTALLER_IP')
-# Set up logger
+# Set up loggers
logger = ft_logger.Logger("security_scan").getLogger()
+paramiko.util.log_to_file("/var/log/paramiko.log")
+
class novaManager:
def __init__(self, *args):