Merge "Initialize logger for rpc-server and wsgi script"

This commit is contained in:
Zuul 2023-08-11 02:39:52 +00:00 committed by Gerrit Code Review
commit 3930b9f5c5
2 changed files with 1 additions and 2 deletions

View File

@ -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"

View File

@ -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