Merge "Set paramiko logging to DEBUG level" into stable/queens

This commit is contained in:
Zuul 2019-01-11 20:44:30 +00:00 committed by Gerrit Code Review
commit 2049332391
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ from manila.i18n import _
CONF = cfg.CONF
LOG = log.getLogger(__name__)
if hasattr('CONF', 'debug') and CONF.debug:
logging.getLogger("paramiko").setLevel(logging.DEBUG)
_ISO8601_TIME_FORMAT_SUBSECOND = '%Y-%m-%dT%H:%M:%S.%f'
_ISO8601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S'