Set paramiko logging to DEBUG level
Connections to backends via paramiko often fail for obscure reasons. If the service log level is DEBUG, increase paramiko logging to DEBUG level as well so that we have more information when issues of this sort occur. Change-Id: I44d8902d58c2ad48b8a37dfbff96c5b9471651e4 (cherry picked from commit575d6ae621
) (cherry picked from commit0cde7b098d
) (cherry picked from commit0b47c687e0
) (cherry picked from commit2eb8268da9
)
This commit is contained in:
parent
6e7d1e8d8b
commit
98653a838f
|
@ -20,6 +20,7 @@
|
|||
import contextlib
|
||||
import functools
|
||||
import inspect
|
||||
import logging
|
||||
import os
|
||||
import pyclbr
|
||||
import random
|
||||
|
@ -52,6 +53,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)
|
||||
|
||||
synchronized = lockutils.synchronized_with_prefix('manila-')
|
||||
|
||||
|
|
Loading…
Reference in New Issue