summaryrefslogtreecommitdiff
path: root/nova/config.py
diff options
context:
space:
mode:
authorLee Yarwood <lyarwood@redhat.com>2021-12-03 16:37:15 +0000
committerLee Yarwood <lyarwood@redhat.com>2021-12-03 18:21:16 +0000
commit159016a4c3fcc8204b769fb41cdab84f2becfc1b (patch)
treeb1def1c4dcfd42ef88612de300671de804a50834 /nova/config.py
parent7670303aabe16d1d7c25e411d7bd413aee7fdcf3 (diff)
downloadnova-159016a4c3fcc8204b769fb41cdab84f2becfc1b.tar.gz
conf: Allow cinderclient and os_brick to independently log at DEBUG
This change adds a simple [cinder]debug configurable to allow cinderclient and os_brick to be made to log at DEBUG independently of the rest of Nova. Change-Id: I84f5b73adddf42831f1d9e129c25bf955e6eda78
Diffstat (limited to 'nova/config.py')
-rw-r--r--nova/config.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/config.py b/nova/config.py
index 98aad0c73f..545fc57145 100644
--- a/nova/config.py
+++ b/nova/config.py
@@ -70,6 +70,11 @@ def set_log_defaults():
extra_default_log_levels = ['glanceclient=DEBUG']
else:
extra_default_log_levels = ['glanceclient=WARN']
+
+ # Allow cinderclient and os_brick to log at DEBUG without Nova
+ if CONF.cinder.debug:
+ extra_default_log_levels += ['cinderclient=DEBUG', 'os_brick=DEBUG']
+
# NOTE(danms): DEBUG logging in privsep will result in some large
# and potentially sensitive things being logged.
extra_default_log_levels.append('oslo.privsep.daemon=INFO')