Remove paramiko.transport logging

Change-Id: I0979aaf4ba5205550a11fba93421a96fc5025d08
This commit is contained in:
Yichen Wang 2019-03-12 14:46:43 -07:00
parent a5d062881d
commit 8adfa15dbf
2 changed files with 1 additions and 8 deletions

View File

@ -7,7 +7,7 @@ Babel>=1.3
attrdict>=2.0.0
lxml>=3.4.0
paramiko>=1.14.0
paramiko>=2.4.2
prettytable>=0.7.2
pymongo>=2.7.2
pytz>=2016.4

View File

@ -30,12 +30,6 @@ def setup(product_name, debug=False, logfile=None):
file_handler.setFormatter(logging.Formatter(file_formatter_str))
# Add appropriate handlers to loggers
# This is to workaround the paramiko logging issue when SSH failed
paramiko_logger = logging.getLogger("paramiko.transport")
paramiko_logger.addHandler(console_handler)
paramiko_logger.setLevel(log_level)
console_logger = logging.getLogger(product_name + '_' + 'console')
console_logger.addHandler(console_handler)
console_logger.setLevel(log_level)
@ -49,7 +43,6 @@ def setup(product_name, debug=False, logfile=None):
if file_handler:
file_logger.addHandler(file_handler)
paramiko_logger.addHandler(file_handler)
all_logger.addHandler(file_handler)
def getLogger(product, target):