Log config options with oslo.config
This removes some custom Cinder code which handles filtering secret config options in a flaky way. Filtering will now be based on the "secret=True" option flag. Related-Bug: #1750074 Change-Id: I1c404b057d1471c85bd7eaf5c096f5912293460a
This commit is contained in:
parent
b4681905dc
commit
f4e2efb58d
@ -623,19 +623,8 @@ def serve(server, workers=None):
|
|||||||
|
|
||||||
|
|
||||||
def wait():
|
def wait():
|
||||||
LOG.debug('Full set of CONF:')
|
CONF.log_opt_values(LOG, logging.DEBUG)
|
||||||
for flag in CONF:
|
|
||||||
flag_get = CONF.get(flag, None)
|
|
||||||
# hide flag contents from log if contains a password
|
|
||||||
# should use secret flag when switch over to openstack-common
|
|
||||||
if ("_password" in flag or "_key" in flag or
|
|
||||||
(flag == "transport_url" and "rabbit:" in flag_get) or
|
|
||||||
(flag == "sql_connection" and
|
|
||||||
("mysql:" in flag_get or "postgresql:" in flag_get))):
|
|
||||||
LOG.debug('%s : FLAG SET ', flag)
|
|
||||||
else:
|
|
||||||
LOG.debug('%(flag)s : %(flag_get)s',
|
|
||||||
{'flag': flag, 'flag_get': flag_get})
|
|
||||||
try:
|
try:
|
||||||
_launcher.wait()
|
_launcher.wait()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user