diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-05-15 08:53:59 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-05-15 08:55:49 +0000 |
commit | a9872c21be9c41939179a165a3dc47e3b6f71692 (patch) | |
tree | 0a6d8d0343de7d7ea249ecade0fcbc5d11b8c516 | |
parent | 4698b20d9529cebc9a68cda9ef61f667f7190053 (diff) |
Update logger in security_scan via logging.getLogger()
1. The module functest.utils.functest_logger has been deleted and
logger has been reconfigured in functest [1].
2. Update connect.py to get logger via logging.getLogger().
[1] https://gerrit.opnfv.org/gerrit/#/c/34019/
JIRA: FUNCTEST-824
Change-Id: Icda67289e503f824b893f8279df979f4a4514497
Signed-off-by: Linda Wang <wangwulin@huawei.com>
-rw-r--r-- | connect.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,22 +10,23 @@ # # 0.1: OpenSCAP paramiko connection functions +import logging import os import socket import paramiko -import functest.utils.functest_logger as ft_logger # add installer IP from env INSTALLER_IP = os.getenv('INSTALLER_IP') # Set up loggers -logger = ft_logger.Logger("security_scan").getLogger() +logger = logging.getLogger('security_scan') paramiko.util.log_to_file("/var/log/paramiko.log") class SetUp: def __init__(self, *args): + logging.basicConfig() self.args = args def keystonepass(self): |