summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Barron <tpb@dyncloud.net>2018-12-30 16:55:14 -0600
committerGoutham Pacha Ravi <gouthampravi@gmail.com>2019-01-05 00:49:08 +0000
commit575d6ae62140681b0be6ef2eccec5b3664524a6d (patch)
tree295dc05ff436247440f0f885ed4f4bb776bc6549
parent1814ad41134a2fa952ea6b664984da07d46d17c3 (diff)
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
Notes
Notes (review): Code-Review+2: Thomas Bechtold <tbechtold@suse.com> Code-Review+2: zhongjun <jun.zhongjun2@gmail.com> Code-Review+2: Rodrigo Barbieri <rodrigo.barbieri2010@gmail.com> Workflow+1: Goutham Pacha Ravi <gouthampravi@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 05 Jan 2019 05:29:55 +0000 Reviewed-on: https://review.openstack.org/627853 Project: openstack/manila Branch: refs/heads/master
-rw-r--r--manila/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/manila/utils.py b/manila/utils.py
index b3aeb69..5b68d0f 100644
--- a/manila/utils.py
+++ b/manila/utils.py
@@ -53,6 +53,8 @@ from manila.i18n import _
53 53
54CONF = cfg.CONF 54CONF = cfg.CONF
55LOG = log.getLogger(__name__) 55LOG = log.getLogger(__name__)
56if hasattr('CONF', 'debug') and CONF.debug:
57 logging.getLogger("paramiko").setLevel(logging.DEBUG)
56 58
57_ISO8601_TIME_FORMAT_SUBSECOND = '%Y-%m-%dT%H:%M:%S.%f' 59_ISO8601_TIME_FORMAT_SUBSECOND = '%Y-%m-%dT%H:%M:%S.%f'
58_ISO8601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S' 60_ISO8601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S'