diff options
author | Tom Barron <tpb@dyncloud.net> | 2018-12-30 16:55:14 -0600 |
---|---|---|
committer | Tom Barron <tpb@dyncloud.net> | 2019-01-11 20:45:10 +0000 |
commit | 2eb8268da9e073a5febe9f21bc3432138dff43b6 (patch) | |
tree | 859111da0d89c7a02d1a8134bb72ab85deda0135 | |
parent | 27468e61d48c7557cc7628294f0d13c039fbb7db (diff) |
Set paramiko logging to DEBUG level5.0.3stable/pike
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 commit 575d6ae62140681b0be6ef2eccec5b3664524a6d)
(cherry picked from commit 0cde7b098d4a3e1dc654f0b227a4bbf99295cff4)
(cherry picked from commit 0b47c687e0cfea06b1927375e27d9d4a46a19f88)
Notes
Notes (review):
Code-Review+2: xing-yang <xingyang105@gmail.com>
Code-Review+1: Jiao Pengju <jiaopengju@cmss.chinamobile.com>
Code-Review+1: zhaixiaojun <zhaixiaojun@gohighsec.com>
Code-Review+2: Rodrigo Barbieri <rodrigo.barbieri2010@gmail.com>
Workflow+1: Rodrigo Barbieri <rodrigo.barbieri2010@gmail.com>
Verified+2: Zuul
Submitted-by: Zuul
Submitted-at: Mon, 14 Jan 2019 23:46:43 +0000
Reviewed-on: https://review.openstack.org/630382
Project: openstack/manila
Branch: refs/heads/stable/pike
-rw-r--r-- | manila/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manila/utils.py b/manila/utils.py index f54472a..aec9317 100644 --- a/manila/utils.py +++ b/manila/utils.py | |||
@@ -54,6 +54,8 @@ from manila.i18n import _ | |||
54 | 54 | ||
55 | CONF = cfg.CONF | 55 | CONF = cfg.CONF |
56 | LOG = log.getLogger(__name__) | 56 | LOG = log.getLogger(__name__) |
57 | if hasattr('CONF', 'debug') and CONF.debug: | ||
58 | logging.getLogger("paramiko").setLevel(logging.DEBUG) | ||
57 | 59 | ||
58 | _ISO8601_TIME_FORMAT_SUBSECOND = '%Y-%m-%dT%H:%M:%S.%f' | 60 | _ISO8601_TIME_FORMAT_SUBSECOND = '%Y-%m-%dT%H:%M:%S.%f' |
59 | _ISO8601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S' | 61 | _ISO8601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S' |