Merge "Initialize logger for rpc-server and wsgi script"
This commit is contained in:
commit
3930b9f5c5
@ -53,6 +53,7 @@ def _init_configuration():
|
||||
conf_files = _get_config_files()
|
||||
config.register_common_config_options()
|
||||
config.init(sys.argv[1:], default_config_files=conf_files)
|
||||
config.setup_logging()
|
||||
config.set_config_defaults()
|
||||
if not cfg.CONF.config_file:
|
||||
sys.exit(_("ERROR: Unable to find configuration file via the default"
|
||||
|
@ -75,8 +75,6 @@ class NeutronApiService(WsgiService):
|
||||
|
||||
@classmethod
|
||||
def create(cls, app_name='neutron'):
|
||||
# Setup logging early
|
||||
config.setup_logging()
|
||||
service = cls(app_name)
|
||||
return service
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user