From ef2a4ad608cb08117cdbdb5322b58f457668b339 Mon Sep 17 00:00:00 2001 From: Luke Hinds Date: Wed, 8 Jun 2016 11:49:36 +0100 Subject: Added paramiko.util.log_to_file JIRA: FUNCTEST-301 Change-Id: I489653d4e47232c5bf51bbae54d2a89c7ac780b6 Signed-off-by: Luke Hinds --- testcases/security_scan/connect.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'testcases') 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): -- cgit 1.2.3-korg