Fix setting default log levels

The default log level override wasn't sticking around because
oslo.config resets the config when calling CONF(). We need to use
set_default instead of setting the value directly.

Change-Id: I43e12134027a657e8f2905ef4fa866332a7fb1dc
This commit is contained in:
Brant Knudson 2015-03-19 15:21:12 -05:00
parent 203228f899
commit 7a991d2f26

View File

@ -47,7 +47,8 @@ def set_default_for_default_log_levels():
]
log.register_options(CONF)
CONF.default_log_levels.extend(extra_log_level_defaults)
CONF.set_default('default_log_levels',
CONF.default_log_levels + extra_log_level_defaults)
def setup_logging():