diff --git a/manila/service.py b/manila/service.py index eca2960743..633631f4e5 100644 --- a/manila/service.py +++ b/manila/service.py @@ -387,18 +387,7 @@ def serve(server, workers=None): def wait(): - LOG.debug('Full set of CONF:') - 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)): - LOG.debug('%(flag)s : FLAG SET ', {"flag": flag}) - else: - LOG.debug('%(flag)s : %(flag_get)s', - {"flag": flag, "flag_get": flag_get}) + CONF.log_opt_values(LOG, log.DEBUG) try: _launcher.wait() except KeyboardInterrupt: diff --git a/releasenotes/notes/use-oslo-logging-for-config-options-388da64bb4ce45db.yaml b/releasenotes/notes/use-oslo-logging-for-config-options-388da64bb4ce45db.yaml new file mode 100644 index 0000000000..2a6b107853 --- /dev/null +++ b/releasenotes/notes/use-oslo-logging-for-config-options-388da64bb4ce45db.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - Use Oslo's logging features to securely output the configuration options + for Manila. +